function strides( x, copy ) {
	var ord;
	var sh;
	var st;

	st = x.strides;
	if ( typeof st !== 'object' || st === null ) {
		sh = x.shape;
		if ( sh.length === 0 ) {
			return [ 0 ];
		}
		ord = x.order;
		if ( typeof ord !== 'string' ) {
			ord = ROW_MAJOR;
		}
		return shape2strides( sh, ord );
	}
	if ( copy ) {
		return copyIndexed( st );
	}
	return st;
}
Returns the strides of a provided ndarray.

@param {ndarrayLike} x - input ndarray
@param {boolean} copy - boolean indicating whether to explicitly copy the value assigned to the input ndarray's `strides` property
@returns {IntegerArray} strides

@example
var zeros = require( '@stdlib/ndarray/zeros' );

var out = strides( zeros( [ 3, 3, 3 ] ), false );
// returns [ 9, 3, 1 ]