|
||
---|---|---|
.. | ||
docs | ||
lib | ||
package.json | ||
README.md |
isOrder
Test if an input value is an ndarray order.
Usage
var isOrder = require( '@stdlib/ndarray/base/assert/is-order' );
isOrder( value )
Tests if an input value
is an ndarray order.
var bool = isOrder( 'row-major' );
// returns true
bool = isOrder( 'column-major' );
// returns true
Examples
var isOrder = require( '@stdlib/ndarray/base/assert/is-order' );
var bool = isOrder( 'row-major' );
// returns true
bool = isOrder( 'column-major' );
// returns true
bool = isOrder( '' );
// returns false
bool = isOrder( 'foo' );
// returns false