Skip to content

Latest commit

 

History

History
117 lines (68 loc) · 2.44 KB

File metadata and controls

117 lines (68 loc) · 2.44 KB

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