Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isDateObjectArray

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

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is an array-like object containing only Date objects

    Example

    var bool = isDateObjectArray( [ new Date(), new Date() ] );
    // returns true
    
    bool = isDateObjectArray( [ {}, new Number( 3.0 ) ] );
    // returns false
    
    bool = isDateObjectArray( [ {}, '3.0' ] );
    // returns false