function includes1d( x, value ) {
	var xbuf;
	var get;
	var dx0;
	var S0;
	var ix;
	var i0;

	// Note on variable naming convention: S#, dx#, dy#, i# where # corresponds to the loop number, with `0` being the innermost loop...

	// Extract loop variables: dimensions and loop offset (pointer) increments...
	S0 = x.shape[ 0 ];
	dx0 = x.strides[ 0 ];

	// Set a pointer to the first indexed element:
	ix = x.offset;

	// Cache a reference to the input ndarray buffer:
	xbuf = x.data;

	// Cache accessor:
	get = x.accessors[ 0 ];

	// Iterate over the ndarray dimensions...
	for ( i0 = 0; i0 < S0; i0++ ) {
		if ( get( xbuf, ix ) === value ) {
			return true;
		}
		ix += dx0;
	}
	return false;
}
Tests whether an ndarray contains a specified value.

@private
@param {Object} x - object containing ndarray meta data
@param {string} x.dtype - data type
@param {Collection} x.data - data buffer
@param {NonNegativeIntegerArray} x.shape - dimensions
@param {IntegerArray} x.strides - stride lengths
@param {NonNegativeInteger} x.offset - index offset
@param {string} x.order - specifies whether `x` is row-major (C-style) or column-major (Fortran-style)
@param {Array<Function>} x.accessors - data buffer accessors
@param {*} value - search element
@returns {boolean} result

@example
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
var accessors = require( '@stdlib/array/base/accessors' );

// Create a data buffer:
var xbuf = toAccessorArray( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );

// Define the shape of the input array:
var shape = [ 4 ];

// Define the array strides:
var sx = [ 2 ];

// Define the index offset:
var ox = 1;

// Create the input ndarray-like object:
var x = {
    'dtype': 'generic',
    'data': xbuf,
    'shape': shape,
    'strides': sx,
    'offset': ox,
    'order': 'row-major',
    'accessors': accessors( xbuf ).accessors
};

// Perform reduction:
var out = includes1d( x, 6.0 );
// returns true

out = includes1d( x, 100.0 );
// returns false