javascript get object list by value code example
Example 1: object values
const object1 = {
a: 'somestring',
b: 42,
c: false
};
console.log(Object.values(object1));
// expected output: Array ["somestring", 42, false]
Example 2: js get all values of object
Object.values(object1)