Last active
September 10, 2021 09:27
-
-
Save abdulloooh/a1702225df7ff63a81bb18cef64f50a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function strictEquals(a,b) { | |
if (Number.isNaN(a) && Number.isNaN(b)) return false; | |
if ((Object.is(a,0) || Object.is(b,0)) && Object.is(a, -b)) return true | |
return Object.is(a,b) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment