Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays of objects
Message
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Titre:
Arrays of objects
Divers
Thread ID:
01653088
Message ID:
01653088
Vues:
63
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform