function ifThenElse(cond, trueFn, falseFn) { ({ true: () => trueFn(), false: () => falseFn() })[cond](); }