replace.js 212 B

12345
  1. require('../../modules/es6.regexp.replace');
  2. var REPLACE = require('../../modules/_wks')('replace');
  3. module.exports = function (it, str, replacer) {
  4. return RegExp.prototype[REPLACE].call(it, str, replacer);
  5. };