tasks/task_helper.js
function(srcArray, dest, options) {
          if (!srcArray.length) {
            // both no data, don't add to filesArray. (Don't return undefined.)
            return typeof dest === 'string' && fileUpdates.isNew(dest, options);
            // But filesArray isn't usable for 'files', 'cause Grunt doesn't support empty src.
          } else if (!dest) {
            return srcArray.some(function(src) {
              return fileUpdates.isNew(src, options);
            });
          } else if (srcArray.length === 1 &&
              path.resolve(srcArray[0]) === path.resolve(dest)) {
            return fileUpdates.isNew(dest, options);
          }
          // both files
          if (srcArray.length === 1) {
            return fileUpdates.compare(srcArray[0], dest) === 1;
          } else {
            // New file exists.
            return srcArray.some(function(src) {
              return fileUpdates.compare(src, dest) === 1;
            });
          }
        }
function(srcArray, dest, options) {
          if (!srcArray.length) {
            // both no data, don't add to filesArray. (Don't return undefined.)
            return typeof dest === 'string' && fileUpdates.isNew(dest, options);
            // But filesArray isn't usable for 'files', 'cause Grunt doesn't support empty src.
          } else if (!dest) {
            return srcArray.some(function(src) {
              return fileUpdates.isNew(src, options);
            });
          } else if (srcArray.length === 1 &&
              path.resolve(srcArray[0]) === path.resolve(dest)) {
            return fileUpdates.isNew(dest, options);
          }
          // both files
          if (srcArray.length === 1) {
            return fileUpdates.compare(srcArray[0], dest) === 1;
          } else {
            // New file exists.
            return srcArray.some(function(src) {
              return fileUpdates.compare(src, dest) === 1;
            });
          }
        }
function ( srcArray , dest , options ) { if ( ! srcArray . length ) { // both no data, don't add to filesArray. (Don't return undefined.) return typeof dest === 'string' && fileUpdates . isNew ( dest , options ) ; // But filesArray isn't usable for 'files', 'cause Grunt doesn't support empty src. } else if ( ! dest ) { return srcArray . some ( function ( src ) { return fileUpdates . isNew ( src , options ) ; } ) ; } else if ( srcArray . length === 1 && path . resolve ( srcArray [ 0 ] ) === path . resolve ( dest ) ) { return fileUpdates . isNew ( dest , options ) ; } // both files if ( srcArray . length === 1 ) { return fileUpdates . compare ( srcArray [ 0 ] , dest ) === 1 ; } else { // New file exists. return srcArray . some ( function ( src ) { return fileUpdates . compare ( src , dest ) === 1 ; } ) ; } }
'new' is keyword of language.
new is keyword of language .