<reponame>Silveeny/TwitterSocial-Battle<filename>frontend/node_modules/prop-types/node_modules/core-js/modules/es6.regexp.split.js<gh_stars>0// @@split logic
require('./$.fix-re-wks')('split', 2, function(defined, SPLIT, $split){
  // 172.16.31.10 String.prototype.split(separator, limit)
  return function split(separator, limit){
    'use strict';
    var O  = defined(this)
      , fn = separator == undefined ? undefined : separator[SPLIT];
    return fn !== undefined
      ? fn.call(separator, O, limit)
      : $split.call(String(O), separator, limit);
  };
});