Functional Branch
unl
exports only one function that takes a test
, a left
, and a right
function and return a combined one that will run left
if test
returns falsy
and right
otherwise
Example
const unless = ; const isOdd = x % 2; const left = ` is not odd`;const right = ` is not even`; const fn = ; console; // returns 2 is not oddconsole; // returns 1 is not even