find-index
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "find-index", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "finds an item in an array matching a predicate function, and returns its index", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"array-findindex": "0.1.0", | ||
"lodash.findindex": "3.2.0", | ||
"lodash.findindex": "^4.6.0", | ||
"tap": "^1.0.4" | ||
@@ -23,0 +23,0 @@ }, |
# find-index | ||
ES6 `Array#findIndex` as a standalone module and a **ponyfill** (a polyfill that | ||
doesn't overwrite the native method). | ||
An implementation of the ES6 method `Array.prototype.findIndex` as a standalone module and a | ||
[*ponyfill*](https://ponyfill.com). | ||
Finds an item in an array matching a predicate function, and returns its index. | ||
Fast both when `thisArg` is used and also when it isn't: | ||
[jsPerf](http://jsperf.com/array-prototype-findindex-shims) | ||
Fast both when `thisArg` is used and also when it isn't. | ||
@@ -43,3 +42,3 @@ ### usage | ||
```js | ||
```bash | ||
$ iojs --harmony_arrays perf/benchmark.js | ||
@@ -46,0 +45,0 @@ |
6340
10
52