function pop( collection ) {
	var v;
	if ( isArray( collection ) ) {
		v = collection.pop();
		return [ collection, v ];
	}
	// Check for a typed-array-like object, as verifying actual typed arrays is expensive...
	if ( isTypedArrayLike( collection ) ) {
		return popTypedArray( collection );
	}
	// Check for an array-like object...
	if (
		collection !== null &&
		typeof collection === 'object' &&
		typeof collection.length === 'number' &&
		isInteger( collection.length ) &&
		collection.length >= 0
	) {
		return popObject( collection );
	}
	throw new TypeError( format( 'invalid argument. Must provide either an array, typed array, or an array-like object. Value: `%s`.', collection ) );
}
Removes and returns the last element of a collection.

@param {(Array|TypedArray|Object)} collection - collection
@throws {TypeError} must provide either an array, typed array, or an array-like object
@returns {Array} updated collection and the removed element

@example
var arr = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];

var out = pop( arr );
// returns [ [ 1.0, 2.0, 3.0, 4.0 ], 5.0 ]

@example
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 = pop( arr );
// returns [ <Float64Array>[ 1.0, 2.0, 3.0, 4.0 ], 5.0 ]