isIterableLike

Test if a value is iterable-like.

Usage

var isIterableLike = require( '@stdlib/assert/is-iterable-like' );

isIterableLike( value )

Tests if a value is iterable-like.

var bool = isIterableLike( [] );
// returns <boolean>

bool = isIterableLike( {} );
// returns false

Notes

Examples

var isIterableLike = require( '@stdlib/assert/is-iterable-like' );

var bool = isIterableLike( [] );
// returns <boolean>

bool = isIterableLike( {} );
// returns false

bool = isIterableLike( null );
// returns false
Did you find this page helpful?