function shift( arr ) {
	var offset;
	var view;
	var v;
	if ( arr.length === 0 ) {
		return [ arr, void 0 ];
	}
	v = arr[ 0 ];
	offset = arr.byteOffset + arr.BYTES_PER_ELEMENT;
	view = new arr.constructor( arr.buffer, offset, arr.length-1 );
	return [ view, v ];
}
Removes and returns the first element of a typed array.

@private
@param {TypedArray} arr - input array
@returns {Array} input array and the removed element

@example
var Float64Array = require( '@stdlib/array/float64' );

var arr = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
// returns <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0 ]

var out = shift( arr );
// returns [ <Float64Array>[ 2.0, 3.0, 4.0, 5.0 ], 1.0 ]