Zapisz element w tablicy JavaScript

// 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