updeep-remeda/lib/if.js
2020-04-02 15:16:13 +01:00

7 lines
174 B
JavaScript

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