tasks/npmcopy.js
function filterRepresented(modules, files, options) {
    return _.filter(modules, function(module) {
      return !_.some(files, function(file) {
        // Look for the module name somewhere in the source path
        return (
          path
            .join(sep, options.srcPrefix, file.src.replace(rmain, '$1'), sep)
            .indexOf(sep + module + sep) > -1
        )
      })
    })
  }
function filterRepresented(modules, files, options) {
    return _.filter(modules, function(module) {
      return !_.some(files, function(file) {
        // Look for the module name somewhere in the source path
        return (
          path
            .join(sep, options.srcPrefix, file.src.replace(rmain, '$1'), sep)
            .indexOf(sep + module + sep) > -1
        )
      })
    })
  }
function filterRepresented ( modules , files , options ) { return _ . filter ( modules , function ( module ) { return ! _ . some ( files , function ( file ) { // Look for the module name somewhere in the source path return ( path . join ( sep , options . srcPrefix , file . src . replace ( rmain , '$1' ) , sep ) . indexOf ( sep + module + sep ) > - 1 ) } ) } ) }
Filter out all of the modules represented in the filesSrc array
@param {Array} modules
@param {Array} files
@param {Object} options
Filter out all of the modules represented in the filesSrc array