How to use the test function from fuzzy

Find comprehensive JavaScript fuzzy.test code examples handpicked from public code repositorys.

5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082


// Return all elements of `array` that have a fuzzy
// match against `pattern`.
fuzzy.simpleFilter = function(pattern, array) {
  return array.filter(function(string) {
    return fuzzy.test(pattern, string);
  });
};


// Does `pattern` fuzzy match `string`?
fork icon0
star icon2
watch icon2

+ 3 other calls in file