Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #convert #object #array #javascript
ADD COMMENT
Topic
Name
1+5 =