lib/detect.js
function (allDependencies, patterns) {
    return _.transform(allDependencies, function (result, dependencies, fileType) {
        result[fileType] = _.reject(dependencies, function (dependency) {
            return _.find(patterns, function (pattern) {
                return dependency.match(pattern);
            });
        });
    });
}
function (allDependencies, patterns) {
    return _.transform(allDependencies, function (result, dependencies, fileType) {
        result[fileType] = _.reject(dependencies, function (dependency) {
            return _.find(patterns, function (pattern) {
                return dependency.match(pattern);
            });
        });
    });
}
function ( allDependencies , patterns ) { return _ . transform ( allDependencies , function ( result , dependencies , fileType ) { result [ fileType ] = _ . reject ( dependencies , function ( dependency ) { return _ . find ( patterns , function ( pattern ) { return dependency . match ( pattern ) ; } ) ; } ) ; } ) ; }
Excludes dependencies that match any of the patterns.

@param  {array} allDependencies  array of dependencies to filter
@param  {array} patterns         array of patterns to match against
@return {array} items that don't match any of the patterns
Excludes dependencies that match any of the patterns .