Created
August 3, 2016 09:44
-
-
Save rkaw92/5dc433d85e44b135c06e860dd4611a00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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