JS Methods for array iteration and operations with objects
Data
An Array of Objects:
const players = ["Wes", "Sarrah", "Ryan", "Poppy"];
Operator Spread
Method Slice
players.slice(2, 3);Method Object.assign
const wes = {
name: "Wes", age: 60, social: {twitter: '@wesbos', facebook: 'wesbos.developer'}
};
(others examples you can find in browser's console - Ctrl+Shift+I)