Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isFunctionArray

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

    Parameters

    • value: any

      value to test

    Returns boolean

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

    Example

    function beep() {}
    
    function boop() {}
    
    var bool = isFunctionArray( [ beep, boop ] );
    // returns true
    
    bool = isFunctionArray( [ {}, beep ] );
    // returns false
    
    bool = isFunctionArray( [] );
    // returns false