function flags( x, copy ) {
	var f = x.flags;
	if ( typeof f !== 'object' || f === null ) {
		return {};
	}
	if ( copy ) {
		return assign( {}, f );
	}
	return f;
}
Returns the flags 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 `flags` property
@returns {Object} flags

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

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