Y
Hacker News
new
|
ask
|
show
|
jobs
by
Someone
2344 days ago
function ifThenElse(cond, trueFn, falseFn) { cond && trueFn(); cond || falseFn(); }