Assume we have some array and I want to get the maximum of the elements.
array.sort((a, b) => b - a)[0]
and
array.reduce((a, b) => (a > b) ? a : b)
will both return the maximum.
The question is, which one is preferred?
For a specific case of my project, I could be iterating over 100+ elements, 100+ times which I thought would be big enough to matter for the small performance difference.

Math.max(...arr)myself