Assume I have a list of objects like so:
var list = [
{ date: \'22/9/2016\', status: 1, id: \'11111\' },
{ date: \'23/9/2016\', status: 1, id: \'22222\'
Use
var ids = list.map(function(item) { return item.id});
Should work.
You can use Array map
var list = [
{ date: '22/9/2016', status: 1, id: '11111' },
{ date: '23/9/2016', status: 1, id: '22222' },
{ date: '24/9/2016', status: 1, id: '33333' }
];
var idList = list.map(item => item.id );
console.log(idList);