8 kyu

isReallyNaN

4,426 of 4,740samjewell

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 Trained6824
Total Skips147
Total Code Submissions23875
Total Times Completed4740
JavaScript Completions4426
TypeScript Completions408
CoffeeScript Completions41
Total Stars51
% of votes with a positive feedback rating90% of 1133
Total "Very Satisfied" Votes947
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