Das Element in Array JavaScript speichern

// Items
var items = [item1, item2, item3, item4, item5];

// Items array
var allItems = [];

// Populate items array
for(var key in items) {
    allUsers.push(users[key]);
}
Snippets