I'd like to convert this:
[{"id":"1"},{"id":"2"},{"id":"3"}]
into this:
['1','2','3']
I'd like to convert this:
[{"id":"1"},{"id":"2"},{"id":"3"}]
into this:
['1','2','3']
var objArray = [{"id":"1"},{"id":"2"},{"id":"3"}];
var newArray = objArray.map(function(obj) {
return obj.id;
});