updeep-remeda/lib/index.js

19 lines
435 B
JavaScript
Raw Normal View History

2015-08-01 15:13:25 +00:00
import update from './update';
import omit from './omit';
import reject from './reject';
import withDefault from './withDefault';
2015-08-02 07:32:32 +00:00
import freeze from './freeze';
import curry from 'lodash/function/curry';
2015-08-02 07:32:32 +00:00
function updateAndFreeze(updates, obj) {
return freeze(update(updates, obj));
}
2015-08-01 15:13:25 +00:00
2015-08-02 07:32:32 +00:00
const curried = curry(updateAndFreeze);
curried.omit = omit;
curried.reject = reject;
curried.withDefault = withDefault;
export default curried;