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