source: frontend/node_modules/underscore/cjs/after.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 231 bytes
Line 
1// Returns a function that will only be executed on and after the Nth call.
2function after(times, func) {
3 return function() {
4 if (--times < 1) {
5 return func.apply(this, arguments);
6 }
7 };
8}
9
10module.exports = after;
Note: See TracBrowser for help on using the repository browser.