array-find-index
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,2 +7,6 @@ 'use strict'; | ||
if (typeof predicate !== 'function') { | ||
throw new TypeError('predicate must be a function'); | ||
} | ||
var list = Object(arr); | ||
@@ -15,6 +19,2 @@ var len = list.length; | ||
if (typeof predicate !== 'function') { | ||
throw new TypeError('predicate must be a function'); | ||
} | ||
for (var i = 0; i < len; i++) { | ||
@@ -21,0 +21,0 @@ if (predicate.call(ctx, list[i], i, list)) { |
{ | ||
"name": "array-find-index", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ES2015 `Array#findIndex()` ponyfill", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |