uni-ticket-system/node_modules/licia/before.js

11 lines
210 B
JavaScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
exports = function(n, fn) {
var memo;
return function() {
if (--n > 0) memo = fn.apply(this, arguments);
if (n <= 1) fn = null;
return memo;
};
};
module.exports = exports;