tsoid
Version:
Typed functional library to deal with async operations.
14 lines (13 loc) • 326 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const when_1 = require("./when");
/**
* Execution the action function if the condition was false.
*
* @param {boolean} cond
* @param {function} fn
*/
function unless(cond, fn) {
return when_1.default(!cond, fn);
}
exports.default = unless;