Answers for "javascript extract array from object"

0

javascript extract array from object

var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj);	// ['v1','v2']
Posted by: Guest on February-18-2021

Code answers related to "javascript extract array from object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language