We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcf724a commit 496a231Copy full SHA for 496a231
find-key.js
@@ -13,7 +13,7 @@
13
module.exports = findKey
14
15
function findKey (obj, callback, thisArg) {
16
- if (Array.isArray(obj)) {
+ if (Array.isArray(obj) && obj.findIndex) {
17
var index = obj.findIndex(callback, thisArg)
18
return ~index ? index : undefined
19
}
0 commit comments