Plato on Github
Report Home
node_modules/es5-ext/string/#/repeat/is-implemented.js
Maintainability
78.13
Lines of code
8
Difficulty
6.36
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var str = 'foo'; module.exports = function () { if (typeof str.repeat !== 'function') return false; return (str.repeat(2) === 'foofoo'); };