Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jaffathecake
on Aug 20, 2020
|
parent
|
context
|
favorite
| on:
Math.min(Math.max(num, min), max)
I don't think so. Whereas an if statement is easy to read
https://twitter.com/jaffathecake/status/1296423819238944768
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: