3 ms·No need to mutate/slice/sort anything Math.max(...lines.map((line) => ctx.measureText(line).width))by madflame991 10y agoNo need to mutate/slice/sort anything Math.max(...lines.map((line) => ctx.measureText(line).width))