Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var filteredItems = allItems.filter(item => {
- if (itesm.year > 1980)
- return true
- else
- return false;
- })
- allItems.forEach(item => {
- if (item.year > 1980)
- addListItem(item.title, "items");
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement