Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
the native `isNaN` is very confusing since it coerces value ToNumber: // native isNaN behavior: isNaN([]) // false isNaN('') // false isNaN(null) // false isNaN('12') // false this implementation solves edge cases and provides a more intuitive behavior: // our implementation isNaN([]) // true isNaN('') // true isNaN(null) // true isNaN('12') // true
- Loading branch information
1 parent
a8c82a7
commit b33a7b3
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
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
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
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