magento-nodejs
Version:
Magento SOAP API wrapper for Node.js
15 lines (11 loc) • 345 B
JavaScript
// globals
var slice = Array.prototype.slice;
// delicious curry
function curry(fn) {
var args = slice.call(arguments, 1);
return function() {
// keeping the 'this' of this function, which will be useful for prototype methods
return fn.apply(this, args.concat(slice.call(arguments)));
};
}
module.exports = curry;