function flags( x ) {
	// Note: we intentionally avoid rigorous ndarray checks to minimize performance impacts. This obviously means that non-ndarray-like objects can sneak through, but this is likely all right for the purposes of this function...
	if ( typeof x !== 'object' || x === null ) {
		throw new TypeError( format( 'invalid argument. Must provide an ndarray. Value: `%s`.', x ) );
	}
	return base( x, true );
}
Returns the flags of a provided ndarray.

@param {ndarrayLike} x - input ndarray
@throws {TypeError} must provide an ndarray
@returns {Object} flags

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

var out = flags( zeros( [ 3, 3, 3 ] ) );
// returns {...}