7 lines
175 B
JavaScript
7 lines
175 B
JavaScript
module.exports = function (f, g) {
|
|
return function () {
|
|
if (!f) { return; }
|
|
f.apply(this, Array.prototype.slice.call(arguments));
|
|
f = g;
|
|
};
|
|
};
|