How to use levenshtein-edit-distance - 1 common examples

To help you get started, we’ve selected a few levenshtein-edit-distance examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andreypopp / validated / src / schema.js View on Github external
let suggestions = this.valuesKeys.map(suggestion => ({
      distance: levenshtein(suggestion, key),
      suggestion,
    }));
    let suggestion = suggestions.sort(this._compareSuggestions)[0];

levenshtein-edit-distance

Levenshtein edit distance

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular levenshtein-edit-distance functions