Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isPlainObjectArray

  • isPlainObjectArray(value: any): boolean
  • Tests if a value is an array-like object containing only plain objects.

    Parameters

    • value: any

      value to test

    Returns boolean

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

    Example

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