How to repeat on interval a given number of times?

Compact syntax with timing methods:

1 $('.some').repeat(interval).doThis().until(count);

Compare this to the old way with more syntactic fluff:

1 var i = 0,
2 intervalID = setInterval(function(){
3   $('.some').doThis();
4   if (++i >= count) {
5     clearInterval(intervalID);
6   }
7 }, interval);

Similar patterns with closed loops

Similar patterns with intervals

Similar patterns with sequential loops