Plato on Github
Report Home
node_modules/es5-ext/array/#/find-index/is-implemented.js
Maintainability
79.17
Lines of code
9
Difficulty
9.38
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
'use strict'; var fn = function (x) { return x > 3; }; module.exports = function () { var arr = [1, 2, 3, 4, 5, 6]; if (typeof arr.findIndex !== 'function') return false; return arr.findIndex(fn) === 3; };