docs: function parseArrayPattern(params, kind) {
          var node = new Node(), elements = [], rest, restNode;
          expect('[');
  
          while (!match(']')) {
              if (match(',')) {
                  lex();
                  elements.push(null);
              } else {
                  if (match('...')) {
                      restNode = new Node();
                      lex();
                      params.push(lookahead);
                      rest = parseVariableIdentifier(kind);
                      elements.push(restNode.finishRestElement(rest));
                      break;
                  } else {
                      elements.push(parsePatternWithDefault(params, kind));
                  }
                  if (!match(']')) {
                      expect(',');
                  }
              }
  
          }
  
          expect(']');
  
          return node.finishArrayPattern(elements);
      }