Plato on Github
Report Home
node_modules/es5-ext/array/#/find/shim.js
Maintainability
81.17
Lines of code
8
Difficulty
5.79
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
'use strict'; var findIndex = require('../find-index/shim'); module.exports = function (predicate/*, thisArg*/) { var index = findIndex.apply(this, arguments); return (index === -1) ? undefined : this[index]; };