function findDuplicateFrameworks(frameworks) {
  const names = frameworks.map((framework) => framework.name); // Creates an array with framework names only
  const duplicateNames = names.filter((name, index) => names.indexOf(name) !== index); // Filters out repetitive framework names

  return duplicateNames;
}
Looks for duplicate frameworks
@param {{type: string, name: string}[]} frameworks
@returns {string[]}