u-contains
v0.0.1
Published
A uniform way to check if a string or array contains another string
Downloads
8
Readme
u-contains
A uniform way to check if a string or array contains another string
Install
npm install --save u-contains
Use
var contains = require('u-contains')
contains('foobar', 'foo') // true
contains('foobar', 'baz') // false
contains(['foo', 'bar'], 'foo') // true
contains(['foo', 'bar'], 'baz') // false