22 lines
511 B
JavaScript
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;
|