Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays of objects
Message
From
04/08/2017 17:37:08
 
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01653088
Message ID:
01653090
Views:
54
>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
Map
View

Click here to load this message in the networking platform