updeep-remeda/dist/if.js
2023-01-03 13:51:35 -05:00

8 lines
265 B
JavaScript

import { identity } from "remeda";
import ifElse from "./ifElse.js";
import wrap from "./wrap.js";
function _if(object, predicate, trueUpdates) {
return ifElse(object, predicate, trueUpdates, identity);
}
export default wrap(_if);
//# sourceMappingURL=if.js.map