* - Fixed Spacing and EOL. - Fixed Wrong Spellings. - Improved Examples. * ## Adding Content for : - Add `apply()` - Add `bind()` - Add `call()`
526 B
526 B
Object.is
The Object.is() static method determines whether two values are the same value.
console.log(Object.is('1', 1));
// Expected output: false
console.log(Object.is(NaN, NaN));
// Expected output: true
console.log(Object.is(-0, 0));
// Expected output: false
const obj = {};
console.log(Object.is(obj, {}));
// Expected output: false
Visit the following resources to learn more: