3 ms·
Hmmmm... I wonder how you would avoid the expressions from being evaluated without wrapping then in a function (sorry if it's a lame question, I haven't done an
by madia_leva 5y ago
Hmmmm... I wonder how you would avoid the expressions from being evaluated without wrapping then in a function (sorry if it's a lame question, I haven't done any JS in years).
Not that there is anything wrong with lambdas, but it's quite a los of boilerplate for something as simole as a cond.