Googlish
Enter a Google search style query and it will return a test function that returns true when its input satisfies the query.
Works with double and single quoted inner strings:
const test = //true const test = //false
By default substrings count as matches and search is case insensitive. This can be changed:
let wholeWords = truelet caseSensitive = true
Ideal for creating filter functions:
const isLazyDog = const dogs = 'happy dog' 'lazy dog'const lazyDogs = dogs// ['lazy dog']