Skip to content

Instantly share code, notes, and snippets.

Function.prototype.curry = function () {
const theOriginalFunctionDefinitionWeAreCurrying = this;
const theFirstGroupOfParameters = arguments;
return function() {
const theSecondGroupOfParameters = arguments;
return theOriginalFunctionDefinitionWeAreCurrying(...theFirstGroupOfParameters, ...theSecondGroupOfParameters);
}
}
Atom sync-settings