Performs a SameValueZero comparison between two values to determine if they are equivalent.
1.0.0
const object = { a: 1 };const other = { a: 1 };eq(object, object); // => trueeq(object, other); // => false Copy
const object = { a: 1 };const other = { a: 1 };eq(object, object); // => trueeq(object, other); // => false
eq('a', 'a'); // => true Copy
eq('a', 'a'); // => true
eq('a', Object('a')); // => false Copy
eq('a', Object('a')); // => false
eq(NaN, NaN); // => true Copy
eq(NaN, NaN); // => true
Performs a SameValueZero comparison between two values to determine if they are equivalent.