Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-numeric-array/docs/types/index.d"

Index

Functions

Functions

Export assignment isNumericArray

  • isNumericArray(v: any): boolean
  • Tests if a value is a numeric array.

    Parameters

    • v: any

      value to test

    Returns boolean

    boolean indicating if a value is a numeric array

    Example

    var bool = isNumericArray( new Int8Array( 10 ) );
    // returns true
    
    bool = isNumericArray( [ 1, 2, 3 ] );
    // returns true
    
    bool = isNumericArray( [ '1', '2', '3' ] );
    // returns false