isnan

This function determines whether the provided value is a number.

This function does not generate an event.

Function

isnan(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the given value is not a number, else false.

Example

This code shows some return values for isnan():

[
    isnan( true ),
    isnan( 123 ),
    isnan( 3.14 ),
    isnan( inf ),
    isnan( [] ),
    isnan( {} ),
    isnan( nan ),
    isnan( '123' ),
];

Return value in JSON format

[
    false,
    false,
    false,
    false,
    true,
    true,
    true,
    true
]