Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
drawfloat
· 4y ago · 0 comments
I actually thought Math.max was faster in modern Chrome than a ternary.
Comments
[–]
hajile
4y ago
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...