Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/assert/is-infinite/docs/types/index.d"

Index

Functions

Functions

isInfinite

  • isInfinite(x: number): boolean
  • Tests if a double-precision floating-point numeric value is infinite.

    Parameters

    • x: number

      value to test

    Returns boolean

    boolean indicating whether the value is infinite

    Example

    var bool = isInfinite( Infinity );
    // returns true

    Example

    var bool = isInfinite( -Infinity );
    // returns true

    Example

    var bool = isInfinite( 5.0 );
    // returns false

    Example

    var bool = isInfinite( NaN );
    // returns false