UNPKG

@naturalcycles/js-lib

Version:

Standard library for universal (browser + Node.js) javascript

10 lines (9 loc) 363 B
/** * Modified version of: https://github.com/sindresorhus/leven/ * * Returns a Levenshtein distance between first and second word. * * `limit` optional parameter can be used to limit the distance calculation * and skip unnecessary iterations when limit is reached. */ export declare function _leven(first: string, second: string, limit?: number): number;