Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isNan

  • isNan(val: unknown): boolean
  • Checks if the given value is NaN. The difference with the native isNaN function is that this will not return true for strings or other types and only for the NaN value, the only value that doesn't equals itself.

    example

    isNan(NaN); // true isNan('not NaN'); // false isNan(null); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is NaN.

Legend

  • Function

Generated using TypeDoc