diff --git a/src/utils/findIndex.js b/src/utils/findIndex.js index 117640e0..231ffcf0 100644 --- a/src/utils/findIndex.js +++ b/src/utils/findIndex.js @@ -1,4 +1,9 @@ function findIndex(arr, predicate, thisArg) { + // if native support is available, ship it off + if (Array.prototype.findIndex) { + return arr.findIndex(predicate, thisArg) + } + if (!arr) { throw new TypeError('findIndex called on null or undefined') }