Polyfill implementation of the Object.is() method for environments where it doesn't exist.
Determines whether two values are the same value, taking into account special cases like
NaN and signed zeros.
Parameters
value1: any
The first value to compare
value2: any
The second value to compare
Returns boolean
True if the values are the same value, false otherwise
Polyfill implementation of the Object.is() method for environments where it doesn't exist. Determines whether two values are the same value, taking into account special cases like NaN and signed zeros.