react-router-ga
Version:
[](https://npm.im/react-router-ga) [](https://npm.im/react-router-ga) [](https://ope
16 lines (13 loc) • 322 B
TypeScript
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'
```
*/
const levenary: (str: string, array: string[]) => string;
export default levenary;
}