function prop2slice( ndims ) {
	if ( ndims === 0 ) {
		return prop2slice0d;
	}
	if ( ndims === 1 ) {
		return prop2slice1d;
	}
	return prop2slicend;
}
Returns a function for converting a property string to a slice according to a specified dimensionality.

@private
@param {NonNegativeInteger} ndims - number of dimensions
@returns {Function} function for converting a property string to a slice