Returns
trueif a value exists in the given string, array or object.
npm i any --save
var any = require('any');
any('a-b-c', 'a');
//=> true
any('a-b-c', 'd');
//=> false
any({a: 'b', c: 'd'}, 'a');
//=> true
any([{a: 'b', c: 'd'}], {a: 'b'});
//=> true
any('a-b-c', 'd');
//=> false
Install dev dependencies.
npm i -d && npm test
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on February 26, 2015.