Skip to content

Instantly share code, notes, and snippets.

@jhamon
Created April 23, 2014 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhamon/11199454 to your computer and use it in GitHub Desktop.
Save jhamon/11199454 to your computer and use it in GitHub Desktop.
// setInterval implemented using setTimeout
function mySetInterval(fn, delay) {
setTimeout(function () {
fn();
mySetInterval(fn, delay);
}, delay)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment