function squeeze( arr, index ) {
	var sh = [ arr.shape[ index ] ];
	var sx = [ arr.strides[ index ] ];
	return reshape;

	/**
	* Returns an ndarray view in which the singleton dimensions are removed from an input ndarray having only a single non-singleton dimension.
	*
	* @private
	* @param {ndarrayLike} x - input ndarray
	* @returns {ndarrayLike} a squeezed ndarray view
	*/
	function reshape( x ) {
		// NOTE: the following properties must be set in the exact same order as in `arr` in order to ensure that the returned object has the same hidden shape as the input ndarray-like object...
		return {
			'dtype': x.dtype,
			'data': x.data,
			'shape': sh,
			'strides': sx,
			'offset': x.offset,
			'order': x.order
		};
	}
}
Returns a function which returns an ndarray view in which the singleton dimensions are removed from an input ndarray having only a single non-singleton dimension.

@private
@param {ndarrayLike} arr - original ndarray
@param {NonNegativeInteger} index - index of the non-singleton dimension
@returns {Function} function for returning an ndarray view