Hacker News new | ask | show | jobs
by drawfloat 1430 days ago
I actually thought Math.max was faster in modern Chrome than a ternary.
1 comments

You can try for yourself (this uses an if..else, but they compile to the same thing)

https://www.measurethat.net/Benchmarks/Show/6528/0/mathmin-v...