Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.
/ number-is-nan Public archive

ES2015 Number.isNaN() ponyfill

License

Notifications You must be signed in to change notification settings

sindresorhus/number-is-nan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated as this is now natively available in all modern browsers and Node.js versions.


number-is-nan

ES2015 Number.isNaN() ponyfill

Install

npm install number-is-nan

Usage

const numberIsNan = require('number-is-nan');

numberIsNan(NaN);
//=> true

numberIsNan('unicorn');
//=> false