code: function hasDuplicateParams(paramsList) {
      return paramsList.every((param) => param.type === 'Identifier') &&
            paramsList.length !== new Set(paramsList.map((param) => param.name)).size;
  }
docs: Checks whether a simple list of parameters contains any duplicates. This does not handle complex
  parameter lists (e.g. with destructuring), since complex parameter lists are a SyntaxError with duplicate
  parameter names anyway. Instead, it always returns `false` for complex parameter lists.
  @param {ASTNode[]} paramsList The list of parameters for a function
  @returns {boolean} `true` if the list of parameters contains any duplicates