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
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…