How to repeat actions in a closed interval loop with immediate first run?

Compact syntax with timing methods:

1
$('.some').repeat(interval,true).doThis().until(false);

The closing command .until(false) can be skipped for infinite loops.

Compare this to the old way with more syntactic fluff:

1
2
3
4
5
function myFunction(){
  $('.some').doThis();
}
myFunction();
setInterval(myFunction, interval);

Similar patterns with closed loops

Similar patterns with intervals

Similar patterns with sequential loops