Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 759 Bytes

.verb.md

File metadata and controls

46 lines (30 loc) · 759 Bytes

{%= name %} {%= badge("fury") %} {%= badge("travis") %}

{%= description %}

  • if a callback is passed, checks to see if a truthy value is returned for any element in a collection or for any sub-string in a string.
  • returns as soon as it finds a passing value and does not iterate over the entire collection.

{%= include("install-npm", {save: true}) %}

Usage

var any = require('{%= name %}');
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

Running tests

{%= include("tests") %}

Author

{%= include("author") %}

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}