General information
Category:
Coding, syntax & commands
>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.
In versions before latest V8 optimizer at least much better than deleting properties, as that cancelled JIT in those
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only