updeep-remeda/lib/if.js
2017-04-18 17:55:46 -07:00

7 lines
172 B
JavaScript

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