EndemolShineGroup/generator-nodejs-ts

View on GitHub
src/lib/createFileFilter.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Creates a filter function to use in `Array.filter()`
 * @param filterString
 */
export default (filterString: string) => {
  return (fileName: string) => {
    return !fileName.includes(filterString);
  };
};