|
@@ -10,9 +10,8 @@ const argsToArray = fn => {
|
|
|
};
|
|
|
|
|
|
const curry = fn => {
|
|
|
- return function curried () {
|
|
|
- const that = this,
|
|
|
- args = Array.prototype.slice.call(arguments);
|
|
|
+ return function curried (...args) {
|
|
|
+ const that = this;
|
|
|
|
|
|
if (args.length < fn.length) {
|
|
|
return curried.bind.apply(curried, [that].concat(args));
|