Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays of objects
Message
 
 
To
All
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Title:
Arrays of objects
Miscellaneous
Thread ID:
01653088
Message ID:
01653088
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform