Plato on Github
Report Home
node_modules/es5-ext/array/is-plain-array.js
Maintainability
67.19
Lines of code
11
Difficulty
10.23
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
'use strict'; var isArray = Array.isArray, getPrototypeOf = Object.getPrototypeOf; module.exports = function (obj) { var proto; if (!obj || !isArray(obj)) return false; proto = getPrototypeOf(obj); if (!isArray(proto)) return false; return !isArray(getPrototypeOf(proto)); };