🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Object › values
Object.values() - JavaScript | MDN
The Object.values() static method returns an array of a given object's own enumerable string-keyed property values.
🌐
W3Schools
w3schools.com › jsref › jsref_object_values.asp
JavaScript Object.values() Method
❮ Previous JavaScript Object ... Object.values(person); Try it Yourself » · The Object.values() method returns an array of the property values of an object....
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › ways-to-implement-object-values-in-javascript
Ways to implement Object.values() in JavaScript - GeeksforGeeks
July 12, 2025 - There is a method Object.values() which returns the values of JavaScript Object. Here we are going to see all other alternatives to this method with the help of JavaScript.
🌐
Medium
medium.com › @conboys111 › how-do-object-keys-object-values-and-object-entries-differ-in-javascript-8d1c19901ecb
How Do Object.keys(), Object.values(), and Object.entries() Differ in JavaScript? | by myHotTake | Medium
September 27, 2024 - Curious, I then pulled out the Object.values() map. This map was like looking at the treasures without bothering with their names. It led me down the same hallway, but now I was focused on the values behind the tags — what each treasure represented. As I walked, I noticed that even though the treasures were the same, the order they were placed followed the same rule as the key names.
🌐
W3Schools
w3schools.com › jS › js_object_properties.asp
JavaScript Object Management
Object properties are key:value pairs · Access properties with dot notation or bracket notation · Add, change, and delete properties using assignment and delete · Use the in operator to check if a property exists · What are JavaScript Objects? What are Object Methods?
🌐
Mozilla
developer.mozilla.org › en-US › docs › Web › JavaScript › Guide › Working_with_objects
Working with objects - JavaScript | MDN
February 21, 2026 - A property's value can be a function, in which case the property is known as a method. Objects in JavaScript, just as in many other programming languages, can be compared to objects in real life. In JavaScript, an object is a standalone entity, with properties and type.
🌐
Codevisionz
codevisionz.com › home › lesson 5: introduction to objects
Understanding JavaScript Objects: Key-Value Pairs Made Simple
June 27, 2025 - Think of an object as a way to describe something with named properties. It’s like a labeled box where each label (key) has a corresponding value. let user = { name: "Liam", age: 30, email: "liam@example.com" }; ... let book = { title: "JavaScript Basics", author: "Alex Doe", pages: 150 }; console.log(book.title); // "JavaScript Basics" console.log(book["author"]); // "Alex Doe"
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-object-values-method
JavaScript Object values() Method - GeeksforGeeks
JavaScript object.values() method is used to return an array whose elements are the enumerable property values found on the object.
Published   July 12, 2024
🌐
p5.js
p5js.org › reference
Reference
Gets the brightness value of a color. ... Creates a p5.Color object.
Top answer
1 of 2
12

Probably the most concise way of getting an array of the values contained within an object is to use Object.keys and Array.prototype.map:

obj = {
    a: 1,
    b: 2,
    c: 3
};
values = Object.keys(obj).map(function (key) {
    return obj[key];
});

Otherwise there's no standardized way of getting an array of an object's values.

For iterating, ES6 introduces a for..of loop which will iterate through an object's values:

continued from above:
for (value of obj) {
    console.log(value); //1, 2, 3
}

ES7 is slated to introduce array comprehensions, so generating the values array could be written as:

continued from above:
values = [for (x of Object.keys(obj)) obj[x]];

If you're already using underscore, you can use the _.values method:

continued from above:
_.values(obj); //[1, 2, 3]

If you just want an efficient implementation for this utility function, the lodash source is:

lodash.js v2.4.1 lines 2891-2914
/**
 * Creates an array composed of the own enumerable property values of `object`.
 *
 * @static
 * @memberOf _
 * @category Objects
 * @param {Object} object The object to inspect.
 * @returns {Array} Returns an array of property values.
 * @example
 *
 * _.values({ 'one': 1, 'two': 2, 'three': 3 });
 * // => [1, 2, 3] (property order is not guaranteed across environments)
 */
function values(object) {
  var index = -1,
      props = keys(object),
      length = props.length,
      result = Array(length);

  while (++index < length) {
    result[index] = object[props[index]];
  }
  return result;
}
2 of 2
1

You could do this, in newer Browsers:

Object.defineProperty(Object.prototype, 'values', {
  get:function(){
    return function(o){
      var a = [];
      for(var i in o){
        a.push(o[i]);
      }
      return a;
    }
  }
});
var arrayOfValues = Object.values({a:'A',b:'B',c:'C'});

Really, I would just do:

function objectValues(obj, inherited){
  var a = [];
  for(var i in obj){
    var v = obj[i];
    if(inherited){
      a.push(v);
    }
    else if(obj.hasOwnProperty(i)){
      a.push(v);
    }
  }
  return a;
}
var notInheritedArrayOfValues = objectValues({a:'A',b:'B',c:'C'});
var inheritedArrayOfValues = objectValues({a:'A',b:'B',c:'C'}, true);
🌐
Medium
medium.com › @ericvanrees › working-with-javascript-objects-28d9172d0427
Working with JavaScript Objects. The following examples explain how to… | by Eric van Rees | Medium
October 2, 2025 - JavaScript objects are collections of key-value pairs, where each key (known as property names) has a value. Accessing both properties names and values is something every developer needs to know.
🌐
Modelo.io
modelo.io › damf › article › 2024 › 10 › 15 › 1115 › setting-object-values-in-javascript
Setting Object Values in JavaScript
October 15, 2024 - Learn how to set key-value pairs in JavaScript objects to store and manipulate data efficiently.
🌐
freeCodeCamp
forum.freecodecamp.org › javascript
Object values overriding - JavaScript - The freeCodeCamp Forum
March 16, 2021 - if i add value to a property of an object then same value is assigning to all objects with same id in type script.
🌐
CoreUI
coreui.io › answers › how-to-get-the-values-of-an-object-in-javascript
How to Get the Values of an Object in JavaScript · CoreUI
October 31, 2025 - The most efficient and modern approach is using the Object.values() method, which returns an array of all enumerable property values.