{"dist":{"shasum":"a60ec642700f0f437234ebb7ec3f382476e542fd","tarball":"https://registry.npmjs.org/first-match/-/first-match-0.0.1.tgz","integrity":"sha512-VvKbnaxrC0polTFDC+teKPTdl2mn6B/KUW+WB3C9RzKDeNwbzfLdnUz3FxC+tnjvus6bI0jWrWicQyVIPdS37A==","signatures":[{"sig":"MEQCIF4LdimMLFFbkE+UOqg8MnpRw2erZPkBQNjpnbtKSsaMAiBxagmT+kN3Mc2aI95RiK8aRdHvRRz0axs9i1d5NR3Y9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"first-match","author":{"url":"htttp://hughskennedy.com/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"},"readme":"# first-match [![Build Status](https://travis-ci.org/hughsk/first-match.png?branch=master)](https://travis-ci.org/hughsk/first-match?branch=master) #\n\nFinds the first element in an array that passes a callback test.\nEquivalent to [_.find()](http://underscorejs.org#find).\n\n## Installation ##\n\n``` bash\nnpm install first-match\n```\n\n## Usage ##\n\n`first(array, [iterator], [context])`. If an iterator is not passed, the method\nwill just return the first truthy value in the array. The context defaults to\nthe array being evaluated.\n\n``` javascript\nvar first = require('first-match')\n  , array = [0, 1, 2, 3, 4, 5]\n\nfirst(array)                               // 1\nfirst(array, function(n) { return n > 3 }) // 4\nfirst(array, function(n) { return n % 2 }) // 1\nfirst(array, function(n) { return n + 2 > this.length }) // 5\n```","license":"MIT","scripts":{"test":"node node_modules/.bin/mocha -u tdd --reporter spec"},"keywords":["element","array","first","truth","test","find"],"repository":{"url":"git://github.com/hughsk/first-match.git","type":"git"},"description":"Find the first element in an array that passes a callback test. Equivalent to underscore.find()","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"devDependencies":{"mocha":"~1.7.4"},"_id":"first-match@0.0.1","version":"0.0.1"}