replace.js 267 B

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