4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-08 13:36:56 +00:00
setup-helm/node_modules/underscore/cjs/after.js
2022-06-27 14:17:15 -04:00

10 lines
231 B
JavaScript

// Returns a function that will only be executed on and after the Nth call.
function after(times, func) {
return function() {
if (--times < 1) {
return func.apply(this, arguments);
}
};
}
module.exports = after;