Object.values()
Object.values() is a JavaScript method in the Object category. Returns an array of a given object's own enumerable property values. The syntax is Object.values(obj). A typical example: Object.values({a:1, b:2}) // [1, 2]. Its time complexity is O(n), which matters when it runs over large inputs. The TypeScript signature is (obj: T): T[keyof T][]. A close sibling is Object.keys(), which returns an array of a given object's own enumerable property names. A close sibling is Object.entries(), which returns an array of key/value pairs. A close sibling is Object.assign(), which copies properties from source objects to a target. A close sibling is Object.create(), which creates a new object with a specified prototype. More about this category: Object methods for object manipulation — keys, values, assign, and more. Related Object methods: Object.keys(), Object.entries(), Object.assign(), Object.create(), Object.defineProperty(), Object.defineProperties(), Object.freeze(), Object.seal(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls.