Skip to content

Instantly share code, notes, and snippets.

@phwb
Last active May 11, 2017 08:56
Show Gist options
  • Save phwb/a2dfa7ee0a7196812ee82ae375c4cb10 to your computer and use it in GitHub Desktop.
Save phwb/a2dfa7ee0a7196812ee82ae375c4cb10 to your computer and use it in GitHub Desktop.
// Immutable.js non-mutating List.push
const collection = Immutable.List.of('ironMan');
collection.push('captainAmerica');
console.log(collection)
// Output:
Array [
"ironMan",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment