replace.js 308 B

123456789
  1. require('../../modules/es.regexp.exec');
  2. require('../../modules/es.string.replace');
  3. var wellKnownSymbol = require('../../internals/well-known-symbol');
  4. var REPLACE = wellKnownSymbol('replace');
  5. module.exports = function (it, str, replacer) {
  6. return RegExp.prototype[REPLACE].call(it, str, replacer);
  7. };