updeep-remeda/esm/if.js

8 lines
265 B
JavaScript
Raw Normal View History

2023-01-03 18:51:35 +00:00
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