{"_id":"index-of","_rev":"440003","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"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-08-05T06:31:43.000Z","created":"2014-12-12T12:40:35.250Z","0.2.0":"2015-06-23T03:52:32.100Z","0.1.1":"2015-05-08T00:02:27.383Z","0.1.0":"2014-12-12T12:40:35.250Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/index-of.git"},"versions":{"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","size":2150,"noattachment":false,"key":"/index-of/-/index-of-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/index-of/download/index-of-0.2.0.tgz"},"directories":{},"publish_time":1435031552100,"_cnpm_publish_time":1435031552100,"_hasShrinkwrap":false},"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","size":2138,"noattachment":false,"key":"/index-of/-/index-of-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/index-of/download/index-of-0.1.1.tgz"},"directories":{},"publish_time":1431043347383,"_cnpm_publish_time":1431043347383,"_hasShrinkwrap":false},"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","size":2609,"noattachment":false,"key":"/index-of/-/index-of-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/index-of/download/index-of-0.1.0.tgz"},"directories":{},"publish_time":1418388035250,"_cnpm_publish_time":1418388035250,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/index-of","bugs":{"url":"https://github.com/jonschlinkert/index-of/issues"},"license":"MIT"}