UNPKG

motion

Version:

motion - moving development forward

64 lines (63 loc) 2.74 kB
{ "_args": [ [ "find-index@https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "find-index@>=0.1.1 <0.2.0", "_id": "find-index@0.1.1", "_inCache": true, "_location": "/find-index", "_phantomChildren": {}, "_requested": { "name": "find-index", "raw": "find-index@https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "rawSpec": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "scope": null, "spec": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "type": "remote" }, "_requiredBy": [ "/glob2base" ], "_resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "_shasum": "675d358b2ca3892d795a1ab47232f8b6e2e0dde4", "_shrinkwrap": null, "_spec": "find-index@https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "james@jsdf.co", "name": "James Friend", "url": "http://jsdf.co/" }, "bugs": { "url": "https://github.com/jsdf/find-index/issues" }, "dependencies": {}, "description": "finds an item in an array matching a predicate function, and returns its index", "devDependencies": {}, "files": [ "index.js", "last.js" ], "homepage": "https://github.com/jsdf/find-index", "keywords": [ "array", "findindex" ], "license": "MIT", "main": "index.js", "name": "find-index", "optionalDependencies": {}, "readme": "\n# find-index\n\nfinds an item in an array matching a predicate function,\nand returns its index\n\nfast both when `thisArg` is used and also when it isn't: [jsPerf](http://jsperf.com/array-prototype-findindex-shims)\n\n### usage\n```bash\nnpm install find-index\n```\n```js\nfindIndex = require('find-index')\nfindLastIndex = require('find-index/last')\n```\n findIndex(array, callback[, thisArg])\n findLastIndex(array, callback[, thisArg])\n Parameters:\n array\n The array to operate on.\n callback\n Function to execute on each value in the array, taking three arguments:\n element\n The current element being processed in the array.\n index\n The index of the current element being processed in the array.\n array\n The array findIndex was called upon.\n thisArg\n Object to use as this when executing callback.\n\nbased on [array-findindex](https://www.npmjs.org/package/array-findindex)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/jsdf/find-index.git" }, "scripts": { "test": "node test/test" }, "version": "0.1.1" }