News for hackers. Stuff that matters.
Re:Math.min(Math.max(num, min), max) by jaffathecake on Thursday August 20, 2020 @10:11AM (#24223414)
I don't find this a whole lot easier to read to be honest. It seems like doing minification manually, when we have tools to do that for us. An if statement seems a lot clearer, and minifies well https://twitter.com/jaffathecake/status/1296423819238944768
Re:Math.min(Math.max(num, min), max) by balfirevic on Thursday August 20, 2020 @10:15AM (#24223470)
It's just a matter of what you're used to. Both of those are equally clear to me.