check-str
v2.0.1
Published
check string for all the words in the array, and return true if all the words in the array are found in order.
Downloads
1
Readme
check-str
Check string for an array of words
usage
const checker = require('check-str')
// true
checker(['foo', 'bar'], 'foo bar')
// true
checker(['foo', 'bar'], 'foo OHMYWHATISHEDOINGOVERTHERE bar')
// false
checker(['foo', 'bar'], 'bar foo')
// false
checker(['foo', 'bar'], 'foo what comes after foo again??')
// new feature - now can be case insensitive!
checker(['FOO', 'bar'], 'FoO bAr', true)