|
@@ -24,7 +24,8 @@ const curry = fn => {
|
|
|
|
|
|
const combine = argsToArray(fns => fns.reverse().reduce((fnc, fn) => val => fnc(fn(val))));
|
|
const combine = argsToArray(fns => fns.reverse().reduce((fnc, fn) => val => fnc(fn(val))));
|
|
|
|
|
|
-const promisify = (fn, context = null) => () => {
|
|
|
|
|
|
+// cannot use fat arrow function since we don't get the arguments, then
|
|
|
|
+const promisify = (fn, context = null) => function () {
|
|
// copy passed arguments to a new array
|
|
// copy passed arguments to a new array
|
|
const args = toArray(arguments);
|
|
const args = toArray(arguments);
|
|
|
|
|