Skip to content

Latest commit

 

History

History
69 lines (41 loc) · 1006 Bytes

File metadata and controls

69 lines (41 loc) · 1006 Bytes

isFunctionArray

Test if a value is an array of functions.

Usage

var isFunctionArray = require( '@stdlib/utils/is-function-array' );

isFunctionArray( value )

Tests if a value is an array of functions.

function beep(){}
function boop(){}

var bool = isFunctionArray( [ beep, boop ] );
// returns true

Examples

var isFunctionArray = require( '@stdlib/utils/is-function-array' );

function beep(){}
function boop(){}

var bool = isFunctionArray( [ beep, boop ] );
// returns true

bool = isFunctionArray( [ beep, {} ] );
// returns false

bool = isFunctionArray( [ [], {} ] );
// returns false

bool = isFunctionArray( [ 'a', 'b' ] );
// returns false

bool = isFunctionArray( [] );
// returns false

bool = isFunctionArray( beep );
// returns false