8 kyu

isReallyNaN

4,436 of 4,755samjewell

Description:

I've hit a few bugs in my Java/Type/Coffee-script code recently, and I've traced the problem back to the global isNaN function I was using. I had expected it to be more discerning, but it's returning true for undefined right now.

Write a function isReallyNaN that returns true only if passed in an argument that evalutes to NaN, and returns false otherwise.

Any solution is acceptable!

Fundamentals

Stats:

CreatedFeb 15, 2016
PublishedMar 5, 2017
Warriors Trained6844
Total Skips147
Total Code Submissions23936
Total Times Completed4755
JavaScript Completions4436
TypeScript Completions413
CoffeeScript Completions41
Total Stars50
% of votes with a positive feedback rating90% of 1134
Total "Very Satisfied" Votes948
Total "Somewhat Satisfied" Votes149
Total "Not Satisfied" Votes37
Total Rank Assessments42
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • samjewell Avatar
  • JohanWiltink Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • KayleighWasTaken Avatar
Ad