Hacker News new | ask | show | jobs
by madflame991 3497 days ago
No need to mutate/slice/sort anything

    Math.max(...lines.map((line) => ctx.measureText(line).width))