JSFiddle - React, Tailwind, and code Playground
by Jessie Lau
JavaScript
function unless(test, then) {
if (!test) then();
}
function repeat(times, body) {
for (var i = 0; i < times; i++) body(i);
}
repeat(30, function(n) {
unless(n % 2, function() {
console.log(n, "is even");
});
});