updeep-remeda/lib/if.js
2015-09-11 11:57:39 -07:00

7 lines
175 B
JavaScript

import ifElse from './ifElse';
import curry from './util/curry';
export default curry((predicate, trueUpdates, object) =>
ifElse(predicate, trueUpdates, x => x, object)
);