Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isObjectArray

  • isObjectArray(value: any): boolean
  • Test if a value is an array-like object containing only objects.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether an input value is an array-like object containing only objects

    Example

    var bool = isObjectArray( [ {}, new Number(3.0) ] );
    // returns true
    
    bool = isObjectArray( [ {}, { 'beep': 'boop' } ] );
    // returns true
    
    bool = isObjectArray( [ {}, '3.0' ] );
    // returns false