Sha256: b9411a8cd2d52910979b6178c429827acab2ce6d1e407421917134a917231b38
Contents?: true
Size: 507 Bytes
Versions: 62
Compression:
Stored size: 507 Bytes
Contents
/* */ var aFunction = require('./$.a-function'); module.exports = function(fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function(a) { return fn.call(that, a); }; case 2: return function(a, b) { return fn.call(that, a, b); }; case 3: return function(a, b, c) { return fn.call(that, a, b, c); }; } return function() { return fn.apply(that, arguments); }; };
Version data entries
62 entries across 31 versions & 1 rubygems