isNaN

Checks if a value is a an illegal number (Not-a-Number). The function attempts to convert the tested value to a number before checking it. Therefore, a numeric value in string format, for instance, will not be identified as an illegal number.

Syntax

function isNaN(value: any): boolean
 
Parameter Description
value Value you wish to evaluate if it is an illegal number.

Return Value

Examples