hiddentao / fast-levenshtein

Efficient Javascript implementation of Levenshtein algorithm with locale-specific collator support.
MIT License
596 stars 56 forks source link

Fixes check for Intl #15

Closed kellym closed 8 years ago

kellym commented 8 years ago

Since typeof returns a string, this if statement fails when Intl isn't present.

hiddentao commented 8 years ago

Good catch, thanks.