getLongestLang = (arr) =>
  arr.reduce(
    (savedLang, lang) =>
      lang.name.length > savedLang.name.length ? lang : savedLang,
    { name: "", size: 0, color: "" },
  )
Retrieves the programming language whose name is the longest.

@param {Lang[]} arr Array of programming languages.
@returns {{ name: string, size: number, color: string }} Longest programming language object.