index.js
function (patterns) {
		// External restources have to be 1:1 dest to src, both strings
		// Check for external first, otherwise expand the pattern
		if (!_.isArray(patterns)) {
			if (isExternal(patterns)) {
				return [patterns];
			}

			patterns = [patterns];
		}

		return grunt.file.expand({filter: 'isFile'}, patterns);
	}
function (patterns) {
		// External restources have to be 1:1 dest to src, both strings
		// Check for external first, otherwise expand the pattern
		if (!_.isArray(patterns)) {
			if (isExternal(patterns)) {
				return [patterns];
			}

			patterns = [patterns];
		}

		return grunt.file.expand({filter: 'isFile'}, patterns);
	}
function ( patterns ) { // External restources have to be 1:1 dest to src, both strings // Check for external first, otherwise expand the pattern if ( ! _ . isArray ( patterns ) ) { if ( isExternal ( patterns ) ) { return [ patterns ] ; } patterns = [ patterns ] ; } return grunt . file . expand ( { filter : 'isFile' } , patterns ) ; }
Get assets from pattern. Pattern could be
- an array
- a string
- external resource

@param patterns
Get assets from pattern . Pattern could be - an array - a string - external resource