Files
Speedtest-Tracker/conf/site/node_modules/levenary/index.flow.js
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

16 lines
345 B
JavaScript
Vendored

declare module "levenary" {
/**
Return the string within `array`, whose Levenshtein distance from `str` is minimal.
@example
```
import levenary from 'levenary';
levenary('cat', ['cow', 'dog', 'pig']);
//=> 'cow'
```
*/
declare function levenary (str: string, array: string[]): string;
declare export default typeof levenary;
}