split.js 348 B

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