Created
July 21, 2022 08:05
-
-
Save thedom85/add18298d27894361d296d8f7a74040c to your computer and use it in GitHub Desktop.
Kata js is Really NaN.
This file contains hidden or 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
// https://www.codewars.com/kata/56c24c58e0c0f741d4001aef/train/javascript | |
const isReallyNaN = (val) => { | |
return Number.isNaN(val); | |
}; | |
console.log(isReallyNaN(37), false) | |
console.log(isReallyNaN('37') , false) | |
console.log(isReallyNaN(NaN) , true) | |
console.log(isReallyNaN(undefined) , false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment