code: function getMatchingIcons(iconsWithScores, maxScore) {
    return iconsWithScores
      .filter((item) => item.score === maxScore)
      .map((item) => Object.assign({}, item, { ext: path.extname(item.url) }));
  }
docs: also maps ext to icon object