ES6 - Number.isNaN()


Advertisements


The Number.isNaN() method determines whether the passed value is NaN.

Syntax

var res = Number.isNaN(value);

Parameter Details

Value to determine if it is a NaN

Return Value

Returns a Boolean value true if the value is a not a number.

Example

var res = Number.isNaN(10); 
console.log(res);  

Output

false

es6_number.htm

Advertisements