Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-complex-typed-array-like/docs/types/index.d"

Index

Functions

Export assignment isComplexTypedArrayLike

  • isComplexTypedArrayLike(value: any): boolean
  • Tests if a value is complex-typed-array-like.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is complex-typed-array-like

    Example

    var arr = {
        'BYTES_PER_ELEMENT': 8,
        'length': 10,
        'byteOffset': 0,
        'byteLength': 10,
      'get': function get() {},
      'set': function set() {}
    };
    var val = isComplexTypedArrayLike( arr );
    // returns true

    Example

    var Complex128Array = require( `@stdlib/array/complex128` );
    
    var val = isComplexTypedArrayLike( new Complex128Array( 4 ) );
    // returns true

    Example

    var val = isComplexTypedArrayLike( [] );
    // returns false

    Example

    var val = isComplexTypedArrayLike( {} );
    // returns false

    Example

    var val = isComplexTypedArrayLike( null );
    // returns false

    Example

    var val = isComplexTypedArrayLike( 'beep' );
    // returns false