convert set object to array javascript code example
Example 1: convert object to array javascript
var object = {'Apple':1,'Banana':8,'Pineapple':null};
//convert object keys to array
var k = Object.keys(object);
//convert object values to array
var v = Object.values(object);
Example 2: how to convert object to array in javascript
const propertyValues = Object.values(person);
console.log(propertyValues);