3ce001a4f6
lodash's curry is great and does a lot, but we don't need it all. This is quite a bit faster. Currently, it does away with placeholder support. updeep curry partial call x 9,951,410 ops/sec ±1.61% (62 runs sampled) lodash curry partial call x 988,949 ops/sec ±1.36% (62 runs sampled)
26 lines
517 B
JavaScript
26 lines
517 B
JavaScript
import freeze from './freeze';
|
|
import is from './is';
|
|
import _if from './if';
|
|
import ifElse from './ifElse';
|
|
import map from './map';
|
|
import omit from './omit';
|
|
import reject from './reject';
|
|
import update from './update';
|
|
import updateIn from './updateIn';
|
|
import withDefault from './withDefault';
|
|
|
|
const u = update;
|
|
|
|
u.if = _if;
|
|
u.ifElse = ifElse;
|
|
u.is = is;
|
|
u.freeze = freeze;
|
|
u.map = map;
|
|
u.omit = omit;
|
|
u.reject = reject;
|
|
u.update = update;
|
|
u.updateIn = updateIn;
|
|
u.withDefault = withDefault;
|
|
|
|
export default u;
|