Skip to content

Instantly share code, notes, and snippets.

@rkaw92
Created August 3, 2016 09:44
Show Gist options
  • Save rkaw92/5dc433d85e44b135c06e860dd4611a00 to your computer and use it in GitHub Desktop.
Save rkaw92/5dc433d85e44b135c06e860dd4611a00 to your computer and use it in GitHub Desktop.
const immutable = require('immutable');
const lodash = require('lodash');
const a = new immutable.List([ 1, 2, 3 ]);
const b = new immutable.List([ 1, 2, 3 ])
console.log('a.equals(b) => %s', a.equals(b));
console.log('a === b => %s', a === b);
console.log('_.isEqual(a, b) => %s', lodash.isEqual(a, b));
const z = new immutable.List([ 1, 2, 3, 4 ]);
console.log('_.isEqual(a, z) => %s', lodash.isEqual(a, z));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment