Guest User

Untitled

a guest
Jun 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function after(count, fn) {
  2. let runCount = 0;
  3.  
  4. return function runAfter() {
  5. runCount = runCount + 1;
  6.  
  7. if (runCount >= count) {
  8. return fn.apply(this, arguments);
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment