javascript extract objects from array code example
Example: javascript extract array from object
var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj); // ['v1','v2']
var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj); // ['v1','v2']