aderaaij
11/14/2017 - 10:39 PM

ES6 - Array.of()

Basically, take in whatever in array.of() and return an array https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Global_Objects/Array/of

const team = Array.of('Black Panther', 'Wolverine', 'X-23', 'Sabertooth');
console.log(team);