Skip to content

Instantly share code, notes, and snippets.

// Standard mutating JavaScript Array push
const collection = ['ironMan'];
collection.push('captainAmerica');
console.log(collection)
// Output:
Array [
"ironMan",
"captainAmerica",