convert javascript object into array code example
Example 1: how to convert object to array in javascript
const propertyValues = Object.values(person);
console.log(propertyValues);
Example 2: js convert obj to array
const array = [
['key', 1],
['two', 2],
];
Object.fromEntries(array);
// { one: 1, two: 2 }