{"_id":"any","_rev":"14-a222e99da327f133a961878fb3823675","name":"any","time":{"modified":"2022-06-13T03:07:10.758Z","created":"2013-10-26T18:42:55.305Z","0.0.0":"2013-10-26T18:43:00.173Z","0.5.0":"2013-11-02T00:06:44.213Z","0.1.0":"2014-10-08T15:31:34.512Z","0.1.2":"2014-11-04T13:08:32.165Z","1.0.0":"2015-02-27T01:31:29.807Z"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist-tags":{"latest":"1.0.0"},"description":"Returns `true` if a value exists in the given string, array or object.","readme":"# any [![NPM version](https://badge.fury.io/js/any.svg)](http://badge.fury.io/js/any)  [![Build Status](https://travis-ci.org/jonschlinkert/any.svg)](https://travis-ci.org/jonschlinkert/any) \n\n> Returns `true` if a value exists in the given string, array or object.\n\n- 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.\n- returns as soon as it finds a passing value and does not iterate over the entire collection.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i any --save\n```\n\n\n## Usage\n\n```js\nvar any = require('any');\n```\n\n```js\nany('a-b-c', 'a');\n//=> true\n\nany('a-b-c', 'd');\n//=> false\n\nany({a: 'b', c: 'd'}, 'a');\n//=> true\n\nany([{a: 'b', c: 'd'}], {a: 'b'});\n//=> true\n\nany('a-b-c', 'd');\n//=> false\n```\n\n## Running tests\nInstall dev dependencies.\n\n```bash\nnpm i -d && npm test\n```\n\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on February 26, 2015._\n","versions":{"0.1.0":{"name":"any","description":"Checks if the callback returns a truthy value for any element in a collection, or for any sub-string in a string. The function returns as soon as it finds a passing value and does not iterate over the entire collection. ","version":"0.1.0","homepage":"https://github.com/jonschlinkert/any","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/any.git"},"bugs":{"url":"https://github.com/jonschlinkert/any/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/any/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["arr","array","check","contains","detect","dot","find","for","for-own","forown","function","has","has-own","hasown","is","is-object","isobject","iterate","iterator","javascript","js","key","keys","lookup","node","node-js","notation","object","of","own","pick","prop","properties","property","props","string","type","type-of","typeof","util","utilities","utility","utils","value"],"dependencies":{"for-own":"^0.1.2","make-iterator":"^0.1.0"},"_id":"any@0.1.0","_shasum":"464e682911553414dd4b3fb8c36743d05c048658","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"464e682911553414dd4b3fb8c36743d05c048658","tarball":"https://registry.npmjs.org/any/-/any-0.1.0.tgz","integrity":"sha512-H9Gr4XaGtXEqg+lWsDSCzAB+ZPRtaEyyL8SEcXQXtPbasQk6Dq/RnNoCFWPPHSG48mTRh94qVBD7W1NY6cY/rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICUYIAhIYcL4MTg6AYC4diapqAGaPFcVA7QVzybYYX39AiB9rB9UThjBeY+3RvyM/3xr0qReNXCydfYnApLGOabGRw=="}]}},"0.1.2":{"name":"any","description":"Returns `true` if a value exists in the given string, array or object, or 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. The function returns as soon as it finds a pas","version":"0.1.2","homepage":"https://github.com/jonschlinkert/any","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/any.git"},"bugs":{"url":"https://github.com/jonschlinkert/any/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/any/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":"^0.2.2"},"keywords":["arr","array","check","contains","detect","dot","find","for","for-own","forown","function","has","has-own","hasown","is","is-object","isobject","iterate","iterator","javascript","js","key","keys","lookup","node","node-js","notation","object","of","own","pick","prop","properties","property","props","string","type","type-of","typeof","util","utilities","utility","utils","value"],"dependencies":{"for-own":"^0.1.2","make-iterator":"^0.1.0"},"_id":"any@0.1.2","_shasum":"cd0371844923d232cd1741cea1bd44c3a7cd0003","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cd0371844923d232cd1741cea1bd44c3a7cd0003","tarball":"https://registry.npmjs.org/any/-/any-0.1.2.tgz","integrity":"sha512-Y62kIc9krzfU4sguCEfvykiXl16OU2fZLu3gzI2CKW/5Y5FG1+45pm/0wSWW2kQYpcAwJ6Ymv8bujX0rH26QAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFet2ZWNo82J5qyJUtXuMxA55tXAZfmPmLuEMVBbW1PvAiByWvdDWUHEdHSVOnRxHnIjH3ahp9HfGjcy3/fFgjvDBw=="}]}},"1.0.0":{"name":"any","description":"Returns `true` if a value exists in the given string, array or object.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/any","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/any.git"},"bugs":{"url":"https://github.com/jonschlinkert/any/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/any/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.2","make-iterator":"^0.1.0"},"devDependencies":{"mocha":"*","should":"^5.0.1"},"keywords":["array","check","contains","detect","find","has","has-own","hasown","is","is-object","isobject","key","keys","lookup","object","own","pick","prop","properties","property","props","string","type","type-of","typeof","util","utilities","utility","utils","value"],"gitHead":"efe1036842e538304fc617f7bbad4e3d0daaa086","_id":"any@1.0.0","_shasum":"0a7b348c589faf6ba708d4a2241069ea51628b5e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"0a7b348c589faf6ba708d4a2241069ea51628b5e","tarball":"https://registry.npmjs.org/any/-/any-1.0.0.tgz","integrity":"sha512-eHlqaTpbeFyxHAo2H8XI566tY/m+lvRUTsFwBNtWP08qJe7bf16Oj5ab2coiuY9yTMvzFgjpWbuqQIFqH+yi+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATa4fDJA/0aqJVT4X5TmtYPHTEbVhT/4TYiCMzhd5tSAiEAoBUssVIXLkd36uwWqnClnHLGTar/UmicMEvdOyNuyIc="}]}}},"homepage":"https://github.com/jonschlinkert/any","keywords":["array","check","contains","detect","find","has","has-own","hasown","is","is-object","isobject","key","keys","lookup","object","own","pick","prop","properties","property","props","string","type","type-of","typeof","util","utilities","utility","utils","value"],"repository":{"type":"git","url":"git://github.com/jonschlinkert/any.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/any/issues"},"readmeFilename":"README.md","license":{"type":"MIT","url":"https://github.com/jonschlinkert/any/blob/master/LICENSE"}}