Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created May 17, 2015 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/2b66a1bf7bf434c9506b to your computer and use it in GitHub Desktop.
Save tmcw/2b66a1bf7bf434c9506b to your computer and use it in GitHub Desktop.
Gist from mistakes.io
require('https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.2/immutable.min.js');
var myself = Immutable.Map({ name: 'Tom' });
var someoneElse = myself;
myself = myself.set('name', 'Thomas');
someoneElse;
myself;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment