8 lines
265 B
JavaScript
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
|