{"_id":"index-of","_rev":"6-a9e0b322e5df45d0b3347b7f01b1ebbf","name":"index-of","description":"Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"index-of","description":"Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/index-of","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/index-of.git"},"bugs":{"url":"https://github.com/jonschlinkert/index-of/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/index-of/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["array","index","index-of","javascript","js","util","utils"],"_id":"index-of@0.1.0","_shasum":"61bc04b9ccda15c8bcc522af04d5df283be50dec","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"61bc04b9ccda15c8bcc522af04d5df283be50dec","tarball":"https://registry.npmjs.org/index-of/-/index-of-0.1.0.tgz","integrity":"sha512-heM8cDv1uEG/xUpaZHiJaExcXL5zZ7WGglFUw0kw6wwH0a9vdj7ikYLgOQ1Jt9q/MpnCTHwATIPyzmTXvuhwdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtuKIdLcAvVoAhP/9D56sIR2clfwqOGb5YDI+AEOd+rAiEAznOOTgGpM+kgSjeMj3xuHA9aGAh2VBTHP2bW+H0lVjY="}]}},"0.1.1":{"name":"index-of","description":"Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/index-of","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/index-of.git"},"bugs":{"url":"https://github.com/jonschlinkert/index-of/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/index-of/blob/master/LICENSE"}],"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["array","index","index-of","javascript","js","util","utils"],"gitHead":"e20207f77190478497990bad37be227a6f012915","_id":"index-of@0.1.1","_shasum":"d855af36341b284dad61bbd71695c6c694c157ac","_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":"d855af36341b284dad61bbd71695c6c694c157ac","tarball":"https://registry.npmjs.org/index-of/-/index-of-0.1.1.tgz","integrity":"sha512-xjViw4nSlBPC0QZeLRMndEqGQI/xFa64eGbZZV2TEJuFizwEoL3DVVk8BodC58AG6SlixzDkt3Rt3jq3+XGDuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFcRSIhzq2meEijU0q1yUMQiShsIGY5kTWsMN+whFKkAiBJzeFZFXeVeuVd61RR+Mwy6LxZjLVkIsoOkXoqRpdjCQ=="}]}},"0.2.0":{"name":"index-of","description":"Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/index-of","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/index-of.git"},"bugs":{"url":"https://github.com/jonschlinkert/index-of/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["array","index","index-of","javascript","js","util","utils"],"verbiage":{"related":{"description":"Other object utils:","list":["array-every","array-slice","array-unique","filter-array","index-of"]}},"gitHead":"889146ca3aef096a0384d390dec421656a76ab30","_id":"index-of@0.2.0","_shasum":"38c1e2367ea55dffad3b6eb592ec1cc3090d7d65","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"38c1e2367ea55dffad3b6eb592ec1cc3090d7d65","tarball":"https://registry.npmjs.org/index-of/-/index-of-0.2.0.tgz","integrity":"sha512-VkoJmFW85R0il3IJJYCD7wdQ8pQgTtVoCSqu/BI/ZMy51qDJ618nQsiWmQ6tnyKZShEG2nLt7i7o3YJmEPJSyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYK2Xtr4tfC9DD72+6ts2Wej98VXXgQUlyq9tjY+QzaAIhALwpcgAy+uRkCJ3JgxxZNp9O1Ily+Ez3zWVnfWqke2wb"}]}}},"readme":"# index-of [![NPM version](https://badge.fury.io/js/index-of.svg)](http://badge.fury.io/js/index-of)\n\n> Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i index-of --save\n```\n\nInstall with [bower](http://bower.io/)\n\n```sh\n$ bower install index-of --save\n```\n\n## Usage\n\n```js\nvar indexOf = require('index-of');\n\nindexOf(['a', 'b', 'c'], 'b');\n//=> 1\n\nindexOf(['a', 'b', 'c'], 'd');\n//=> -1\n\nindexOf(['a', 'b', 'c', 'a', 'b', 'c'], 'b', 2);\n//=> 4\n```\n\n## Related projects\n\nOther object utils:\n\n* [array-every](https://github.com/jonschlinkert/array-every): Returns true if the callback returns truthy for all elements in the given array.\n* [array-slice](https://github.com/jonschlinkert/array-slice): Array-slice method. Slices `array` from the `start` index up to, but not including, the `end`… [more](https://github.com/jonschlinkert/array-slice)\n* [array-unique](https://github.com/jonschlinkert/array-unique): Return an array free of duplicate values. Fastest ES5 implementation.\n* [filter-array](https://github.com/jonschlinkert/filter-array): Iterates over the elements in an array, returning an array with only the elements for… [more](https://github.com/jonschlinkert/filter-array)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/index-of/issues/new)\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\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 22, 2015._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-19T01:04:07.990Z","created":"2014-12-12T12:40:35.250Z","0.1.0":"2014-12-12T12:40:35.250Z","0.1.1":"2015-05-08T00:02:27.383Z","0.2.0":"2015-06-23T03:52:32.100Z"},"homepage":"https://github.com/jonschlinkert/index-of","keywords":["array","index","index-of","javascript","js","util","utils"],"repository":{"type":"git","url":"git://github.com/jonschlinkert/index-of.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/index-of/issues"},"readmeFilename":"README.md","license":"MIT"}