I am looking to push only the values of ObjArray into another array called Array.
var Array = [];
var ObjArray = [{item1 : 'Foo'}, {item2 : 'Bar'}];
// Push Values from ObjArray into Array
pushValues(ObjArray, Array);
The expected output would be Array having only ['Foo', 'Bar']
Thanks!
edit: Sorry. I am asking how to push all values from ObjArray into Array.
item1, item2..?Arraay#map