3 ms·function ifThenElse(cond, trueFn, falseFn) { cond && trueFn(); cond || falseFn(); }by Someone 7y agofunction ifThenElse(cond, trueFn, falseFn) { cond && trueFn(); cond || falseFn(); }