tzeikob-interval

setInterval but also calls the function immediately

Usage no npm install needed!

<script type="module">
  import tzeikobInterval from 'https://cdn.skypack.dev/tzeikob-interval';
</script>

README

Build Status npm

Let's get started with intevals

Install the package

npm i tzeikob-interval

Create an interval function

The code below creates a dummy interval callback:

const startInterval = require("tzeikob-interval");

const interval = startInterval(() => {
  console.log("Hooray!");
}, 1000);