Plato on Github
Report Home
node_modules/es5-ext/array/#/fill/is-implemented.js
Maintainability
72.67
Lines of code
7
Difficulty
8.25
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function () { var arr = [1, 2, 3, 4, 5, 6]; if (typeof arr.fill !== 'function') return false; return String(arr.fill(-1, -3)) === '1,2,3,-1,-1,-1'; };