Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript extract array from object

var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj);	// ['v1','v2']
 
PREVIOUS NEXT
Tagged: #javascript #extract #array #object
ADD COMMENT
Topic
Name
9+7 =