function nonCoreShape( shape, dims ) { // TODO: consider moving to a `@stdlib/ndarray/base` utility
	var ind = normalizeIndices( dims, shape.length-1 );
	if ( ind === null ) {
		// Note: this is an error condition, as `null` is returned when provided out-of-bounds indices...
		return [];
	}
	return takeIndexed( shape, indicesComplement( shape.length, ind ) );
}
Returns the shape defined by the dimensions which are **not** included in a list of dimensions.

@private
@param {NonNegativeIntegerArray} shape - input ndarray
@param {IntegerArray} dims - list of dimensions
@returns {NonNegativeIntegerArray} shape