updeep-remeda/lib/index.js
2015-08-04 22:34:06 -07:00

22 lines
511 B
JavaScript

import update from './update';
import updateIn from './updateIn';
import omit from './omit';
import reject from './reject';
import withDefault from './withDefault';
import freeze from './freeze';
import curry from 'lodash/function/curry';
function updateAndFreeze(updates, obj) {
return freeze(update(updates, obj));
}
const updeep = curry(updateAndFreeze);
updeep.in = updateIn;
updeep.freeze = freeze;
updeep.omit = omit;
updeep.reject = reject;
updeep.withDefault = withDefault;
export default updeep;