Files
setup-helm/node_modules/underscore/modules/after.js
github-actions[bot] 20d2b4f98d v3 new release (#80)
2022-06-27 14:17:15 -04:00

9 lines
221 B
JavaScript

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