Comparing version
{ | ||
"name": "find-index", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "finds an item in an array matching a predicate function, and returns its index", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# find-indexof | ||
# find-index | ||
@@ -11,10 +11,10 @@ finds an item in an array matching a predicate function, | ||
```bash | ||
npm install find-indexof | ||
npm install find-index | ||
``` | ||
```js | ||
findIndexOf = require('find-indexof') | ||
findLastIndexOf = require('find-indexof/last') | ||
findIndex = require('find-index') | ||
findLastIndex = require('find-index/last') | ||
``` | ||
findIndexOf(array, callback[, thisArg]) | ||
findLastIndexOf(array, callback[, thisArg]) | ||
findIndex(array, callback[, thisArg]) | ||
findLastIndex(array, callback[, thisArg]) | ||
Parameters: | ||
@@ -21,0 +21,0 @@ array |
2609
-0.61%