function filterFiles( files, exclude ) {
	return filter( files, predicate );

	/**
	* Predicate function.
	*
	* @private
	* @param {string} file - file path
	* @returns {boolean} boolean indicating whether to include a file
	*/
	function predicate( file ) {
		return !contains( exclude, extractPackage( file ) );
	}
}
Filters files based on a list of packages to exclude.

@private
@param {Array} files - list of files
@param {Array} exclude - list of packages to exclude
@returns {Array} filtered files

@example
var files = [
    'lib/node_modules/@stdlib/stats/base/dists/normal/pdf/test/test.js',
    'lib/node_modules/@stdlib/utils/copy/examples/index.js'
];
var exclude = [ 'stats/base/dists/normal/pdf' ];
var out = filterFiles( files, exclude );
// returns [ 'lib/node_modules/@stdlib/utils/copy/examples/index.js' ]