tasks/bower-concat.js
function expandForAll(array, makeMask) {
			var files = [];
			ensureArray(array).forEach(function(item) {
				files = files.concat(grunt.file.expand(makeMask(item)));
			});
			return files;
		}
function expandForAll(array, makeMask) {
			var files = [];
			ensureArray(array).forEach(function(item) {
				files = files.concat(grunt.file.expand(makeMask(item)));
			});
			return files;
		}
function expandForAll ( array , makeMask ) { var files = [ ] ; ensureArray ( array ) . forEach ( function ( item ) { files = files . concat ( grunt . file . expand ( makeMask ( item ) ) ) ; } ) ; return files ; }
Runs grunt.file.expand for every array item and returns combined array.

@param {Array|String} array Masks (can be single string mask).
@param {Function} makeMask function(mask) { return mask; }
@return {Array} All found files.
Runs grunt . file . expand for every array item and returns combined array .