7 kyu
isAN(value)
1,703 of 1,705wthit56
Description:
isNaN
doesn't work very well. We want us to tell us whether the value or object we're dealing with is a number or not. Instead, it tells us if the value is equal to the NaN value it has on-record.
So let's make a proper function, called isAN
, for is A Number
. If you pass it a value, it will return true if a value is a valid primitive number or Number object, and false if not.
Fundamentals
Similar Kata:
Stats:
Created | Apr 15, 2014 |
Published | Apr 15, 2014 |
Warriors Trained | 3813 |
Total Skips | 795 |
Total Code Submissions | 34402 |
Total Times Completed | 1705 |
JavaScript Completions | 1703 |
Total Stars | 41 |
% of votes with a positive feedback rating | 85% of 157 |
Total "Very Satisfied" Votes | 121 |
Total "Somewhat Satisfied" Votes | 26 |
Total "Not Satisfied" Votes | 10 |