80
rated 0 times
[
83]
[
3]
/ answers: 1 / hits: 123092
/ 10 Years ago, sat, august 9, 2014, 12:00:00
Given a javascript object, how can I convert it to an array in ECMAScript-6 ?
For example, given:
var inputObj = {a:'foo', b:[1,2,3], c:null, z:55};
The expected output would be:
['foo', [1,2,3], null, 55]
The order of the elements in the result is not important to me.
More From » arrays