Plato on Github
Report Home
node_modules/es5-ext/reg-exp/#/replace/is-implemented.js
Maintainability
78.04
Lines of code
8
Difficulty
6.25
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var re = /foo/; module.exports = function () { if (typeof re.replace !== 'function') return false; return re.replace('foobar', 'mar') === 'marbar'; };