code: function isValidRestSpreadPair(ctorParam, superArg) {
      return (
          ctorParam.type === "RestElement" &&
          superArg.type === "SpreadElement" &&
          isValidIdentifierPair(ctorParam.argument, superArg.argument)
      );
  }
docs: Checks whether given 2 nodes are a rest/spread pair which has the same values.
  
  @param {ASTNode} ctorParam - A node to check.
  @param {ASTNode} superArg - A node to check.
  @returns {boolean} `true` if the nodes are a rest/spread pair which has the
  same values.