"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.iif = void 0;
const defer_js_1 = require("./defer.js");
function iif(condition, trueResult, falseResult) {
    return (0, defer_js_1.defer)(() => (condition() ? trueResult : falseResult));
}
exports.iif = iif;