0.1.1 • Published 4 months ago
@stdlib/assert-is-ragged-nested-array v0.1.1
isRaggedNestedArray
Test if a value is a ragged nested array.
Installation
npm install @stdlib/assert-is-ragged-nested-array
Usage
var isRaggedNestedArray = require( '@stdlib/assert-is-ragged-nested-array' );
isRaggedNestedArray( value )
Tests if a value is a ragged nested array.
var bool = isRaggedNestedArray( [ [ 1, 2, 3 ], [ 4, 5 ] ] );
// returns true
bool = isRaggedNestedArray( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ] );
// returns false
Examples
var isRaggedNestedArray = require( '@stdlib/assert-is-ragged-nested-array' );
var bool = isRaggedNestedArray( [ [ 1, 2, 3 ], [ 4, 5 ] ] );
// returns true
bool = isRaggedNestedArray( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ] );
// returns false
bool = isRaggedNestedArray( 'beep' );
// returns false
bool = isRaggedNestedArray( null );
// returns false
bool = isRaggedNestedArray( void 0 );
// returns false
bool = isRaggedNestedArray( 5 );
// returns false
bool = isRaggedNestedArray( true );
// returns false
bool = isRaggedNestedArray( {} );
// returns false
bool = isRaggedNestedArray( function noop() {} );
// returns false
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.