Plato on Github
Report Home
node_modules/es5-ext/reg-exp/#/replace/shim.js
Maintainability
84.23
Lines of code
8
Difficulty
4.00
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var validRegExp = require('../../valid-reg-exp'); module.exports = function (string, replaceValue) { validRegExp(this); return String(string).replace(this, replaceValue); };