Hi everybody,
Suppose I have an array of these objects
myCollection = [ {index: 'A', inventoryObject: {object1}}, {index: 'B', inventoryObject: {object2}];
How can I make it just an array of inventoryObjects and remove the index, e.g.
myList = [ {object1}, {object2}]
Should I just manually loop through first array to create the second?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog