(x, y)
| 3889 | */ |
| 3890 | /*eslint-disable no-self-compare*/ |
| 3891 | function is(x, y) { |
| 3892 | // SameValue algorithm |
| 3893 | if (x === y) { |
| 3894 | // Steps 1-5, 7-10 |
| 3895 | // Steps 6.b-6.e: +0 != -0 |
| 3896 | return x !== 0 || 1 / x === 1 / y; |
| 3897 | } else { |
| 3898 | // Step 6.a: NaN == NaN |
| 3899 | return x !== x && y !== y; |
| 3900 | } |
| 3901 | } |
| 3902 | /*eslint-enable no-self-compare*/ |
| 3903 | |
| 3904 | /** |