src code

class method Object.values

Object.values(object) → Array
  • object (Object) – The object to pull values from.

Returns an array of the object's values.

Note that the order of the resulting array is browser-dependent — it relies on the for…in loop, for which the ECMAScript spec does not prescribe an enumeration order.

Also, remember that while property names are unique, property values have no such constraint.