Get Values from an Object
Print the values of a small product object.
var product = {
name: "Keyboard",
price: 49,
inStock: true
};
console.log(Object.values(product));
console.log(Object.values(product).length); How It Works
- Values array. You get the three own enumerable values in key order.
- Mixed types ok. Strings, numbers, and booleans can sit in the same array.
- Array helpers. You can use
map,filter, orreduceon the result.

