Value equality check with semantics similar to, but treats Immutable Iterables as values, equal if the second Iterable includes equivalent values.

is(first: any, second: any): boolean


It's used throughout Immutable when checking for equality, including Map key equality and Set membership.

var map1 = Immutable.Map({a:1, b:1, c:1}); var map2 = Immutable.Map({a:1, b:1, c:1}); assert(map1 !== map2); assert(, map2) === false); assert(, map2) === true);

Note: Unlike, assumes 0 and -0 are the same value, matching the behavior of ES6 Map key equality.

This documentation is generated from immutable.d.ts. Pull requests and Issues welcome.