isRowMajorString
Test whether an input value is the string representing row-major order.
Usage
var isRowMajorString = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
isRowMajorString( value )
Test whether an input value is the string representing row-major order.
var bool = isRowMajorString( 'row-major' );
// returns true
bool = isRowMajorString( 'column-major' );
// returns false
Examples
var isRowMajorString = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
var bool = isRowMajorString( 'row-major' );
// returns true
bool = isRowMajorString( 'column-major' );
// returns false
bool = isRowMajorString( '' );
// returns false
bool = isRowMajorString( 'foo' );
// returns false