@nathanfaucett/approximate_search
v0.0.2
Published
fuzzy match on strings
Downloads
2
Maintainers
Readme
approximate_search
fuzzy match on strings
var approximateSearch = require("@nathanfaucett/approximate_search");
approximateSearch("twl", "cartwheel") === true;
approximateSearch("cart", "cartwheel") === true;
approximateSearch("cw", "cartwheel") === true;
approximateSearch("ee", "cartwheel") === true;
approximateSearch("art", "cartwheel") === true;
approximateSearch("eeel", "cartwheel") === false;
approximateSearch("dog", "cartwheel") === false;