function isValidRestSpreadPair(ctorParam, superArg) {
      return (
        ctorParam.type === 'RestElement'
        && superArg.type === 'SpreadElement'
        && isValidIdentifierPair(ctorParam.argument, superArg.argument)
      );
    }
Checks whether given 2 nodes are a rest/spread pair which has the same values.
@see eslint no-useless-constructor rule
@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.