148
rated 0 times
[
150]
[
2]
/ answers: 1 / hits: 79319
/ 9 Years ago, wed, december 16, 2015, 12:00:00
Is there a simple way, using filter
or parse
or something else to convert an array like the following :
var someJsonArray = [
{id: 0, name: name, property: value, otherproperties: othervalues},
{id: 1, name: name1, property: value1, otherproperties: othervalues1},
{id: 2, name: name2, property: value2, otherproperties: othervalues2}
];
into a simple array filled with one attribute of the objects contained in the previous array like this :
[0, 1, 2]
More From » arrays