{"_id":"indexof-property","_rev":"9-4886fa0547dbb09571c971416a88db27","name":"indexof-property","description":"optimized indexof for a known property","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"indexof-property","version":"1.0.0","description":"optimized indexof for a known property","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/indexof-property.git"},"homepage":"https://github.com/mattdesl/indexof-property","bugs":{"url":"https://github.com/mattdesl/indexof-property/issues"},"keywords":["index","of","indexof","find","search","array","list","property","indexOfProperty","index-of"],"gitHead":"0be63bb1b9a76f41dffe95fca3f3fc1bf657c3ed","_id":"indexof-property@1.0.0","_shasum":"927acf59f81f40f5e7e7d2d1b404499b30e6bc21","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"927acf59f81f40f5e7e7d2d1b404499b30e6bc21","tarball":"https://registry.npmjs.org/indexof-property/-/indexof-property-1.0.0.tgz","integrity":"sha512-z1hdD3XTOnLcDzt7QHVbX5c8IPjzt3o2zHCh3QgDCQMvW4oW/oZ8P9F+K6R712zlcjsg+Crc02fIk6bWPGdTdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7D3/kld+oylr9LPnmmTlnFKIrqBHuY5nRL20mmsvrWAIhAIBS+igAlrFZcmuisN9gumAmOnwtgBmYk+0JvrcqfDAw"}]},"deprecated":"deprecated"},"1.1.0":{"name":"indexof-property","version":"1.1.0","description":"optimized indexof for a known property","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{"is-property":"^1.0.0"},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/indexof-property.git"},"homepage":"https://github.com/mattdesl/indexof-property","bugs":{"url":"https://github.com/mattdesl/indexof-property/issues"},"keywords":["index","of","indexof","find","search","array","list","property","indexOfProperty","index-of"],"gitHead":"b6c25ab0c715402cab7df9b704643543235125fb","_id":"indexof-property@1.1.0","_shasum":"2cecbd753517f9a235259c36999c154c0f6acb32","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"2cecbd753517f9a235259c36999c154c0f6acb32","tarball":"https://registry.npmjs.org/indexof-property/-/indexof-property-1.1.0.tgz","integrity":"sha512-kPvxb5d8I/7uRZNe6Yg0H+Uody/lvQYxsIt2Et1d4IxhLmustQjSQ2NucpGcUi02NFwajvmKXOqLeax9VYqBqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEE5bA8vajRQ3QaTk15k4BRLF/4oAKpsSC9ZkDbsyxueAiBhfNbfZOXCIIXKpUhfg8awXW75dfL0oCiglsp601EyJQ=="}]},"deprecated":"deprecated"},"1.1.1":{"name":"indexof-property","version":"1.1.1","description":"optimized indexof for a known property","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"dependencies":{},"devDependencies":{"tape":"~2.13.2"},"scripts":{"test":"node test.js"},"testling":{"files":"test.js","browsers":["ie/6..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/latest"]},"repository":{"type":"git","url":"git://github.com/mattdesl/indexof-property.git"},"homepage":"https://github.com/mattdesl/indexof-property","bugs":{"url":"https://github.com/mattdesl/indexof-property/issues"},"keywords":["index","of","indexof","find","search","array","list","property","indexOfProperty","index-of"],"gitHead":"67a944cfdb037c1091fd1839994d989196b76584","_id":"indexof-property@1.1.1","_shasum":"9eea3703f1772192395ab6fc7721ab2ce045475b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"9eea3703f1772192395ab6fc7721ab2ce045475b","tarball":"https://registry.npmjs.org/indexof-property/-/indexof-property-1.1.1.tgz","integrity":"sha512-14qZ4mzv8sUzJeZtsn2h06OZ2Y33QsXj7um7r3R5UMd+5T608ziNmF/Zpjhe1plkkmJfj5Jyrmftl1NQPZxYvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyWpsAhgJie5vF1LlFwDlBHmaKxalMz2ay6ILPnsEU5AIhANbk7oxzntR5LWkHwelDE4Uyz6H9NldygcWN9PURkq61"}]},"deprecated":"deprecated"}},"readme":"# indexof-property\n\n[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)\n\nCompiles an optimized indexof function for a known property. \n\n```js\n//let's search for the 'name' property\nvar indexOf = require('indexof-property')('name')\n\nvar list = [\n\t{ name: 'foo', data: 5 },\n\t{ name: 'bar', data: 10 },\n\t{ name: 'beep', data: 0 },\n\t{ name: 'foobar', data: -5 },\n\t{ name: 'beep', data: 20 }\n]\n\n// prints 2\nconsole.log( indexOf(list, 'beep') )\n\n// prints -1\nconsole.log( indexOf(list, 'blah') )\n\n// prints 4\nconsole.log( indexOf(list, 'beep', 3) )\n```\n\nThe function compiles with bracket notation to support unusual property names, e.g. `\"border-radius\"`.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/indexof-property.png)](https://nodei.co/npm/indexof-property/)\n\n#### `require('indexof-property')(property)`\n\nCompiles a new function that searches for the specified `property` name. The new function has the signature:\n\n```i = indexOf(array, value[, start])```\n\nWhich searches for the first strictly equal match to `value` and returns that index, or -1 if none was found. The `start` index defaults to zero if unspecified.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/indexof-property/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-19T01:05:36.009Z","created":"2014-09-19T15:34:58.730Z","1.0.0":"2014-09-19T15:34:58.730Z","1.1.0":"2014-09-19T15:56:46.631Z","1.1.1":"2014-09-20T15:37:53.661Z"},"homepage":"https://github.com/mattdesl/indexof-property","keywords":["index","of","indexof","find","search","array","list","property","indexOfProperty","index-of"],"repository":{"type":"git","url":"git://github.com/mattdesl/indexof-property.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com"},"bugs":{"url":"https://github.com/mattdesl/indexof-property/issues"},"license":"MIT","readmeFilename":"README.md"}