
The Object.is() method determines whether two values are the same value.
Object.is('foo', 'foo'); // true
Object.is(null, null); // true
Object.is(Nan, Nan); // true 😱
const foo = { a: 1 };
const bar = { a: 1 };
Object.is(foo, foo); // true
Object.is(foo, bar); // false