Gazebo_simulation-Frontend/node_modules/levenary/index.flow.js
2020-12-21 10:29:31 -05:00

16 lines
345 B
JavaScript

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;
}