function arrayObject( buffer, byteOffset ) {
	var dt;
	var x;

	if ( arguments.length === 0 ) {
		x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
		dt = dtype( x );
	} else {
		x = new Float64Array( buffer, byteOffset, 4 );
		x[ 0 ] = 1.0;
		x[ 1 ] = 2.0;
		x[ 2 ] = 3.0;
		x[ 3 ] = 4.0;
		dt = dtype( x );
		writeDataView( x.length, x, 1, new DataView( buffer ), bytesPerElement( dt ), true ); // eslint-disable-line max-len
	}
	return {
		'dtype': dt,
		'wdtype': dtype2wasm( dt ),
		'length': x.length,
		'data': x,
		'stride': 1,
		'offset': 0
	};
}
Returns an array object.

@private
@param {ArrayBuffer} [buffer] - array buffer
@param {NonNegativeInteger} [byteOffset] - byte offset
@returns {Object} an array object