FLUJOS/VISUALIZACION/node_modules/underscore/modules/after.js
2025-11-07 00:06:12 +01:00

8 lines
221 B
JavaScript
Executable file

// 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);
}
};
}