replace.js 267 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 require('../../modules/es.string.replace'); var wellKnownSymbol = require('../../internals/well-known-symbol'); var REPLACE = wellKnownSymbol('replace'); module.exports = function (it, str, replacer) { return RegExp.prototype[REPLACE].call(it, str, replacer); };