file extensions
A function that takes a filepath and returns true if the filepath has one of the specified file extensions, false otherwise.
If no file extensions are provided, the filter will always return true.
createFileExtensionFilter(['.ts', '.tsx'])('index.ts');
//=> true
createFileExtensionFilter(['.ts', '.tsx'])('index.js');
//=> false
Generated using TypeDoc
Takes a list of file extensions and returns a filter function that returns true if a filepath/filename passed to it contains one of the given file extensions.