code: function (regexp) {
          var res = maybeCallNative(nativeMatch, regexp, this);
          if (res.done) return res.value;
  
          var rx = anObject(regexp);
          var S = String(this);
  
          if (!rx.global) return regExpExec(rx, S);
  
          var fullUnicode = rx.unicode;
          rx.lastIndex = 0;
          var A = [];
          var n = 0;
          var result;
          while ((result = regExpExec(rx, S)) !== null) {
            var matchStr = String(result[0]);
            A[n] = matchStr;
            if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
            n++;
          }
          return n === 0 ? null : A;
        }
docs: `RegExp.prototype[@@match]` method https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match