Trigger setInterval immediately

Its probably common knowledge that you can do this, but I didn’t know that you could. This is a great way to trigger a function at the beginning of a `setInterval`. As you might know `setInterval` triggers after the given millisecond. So what this does it that it triggers it self at the beginning and returns it self as a function to `setInterval`.

Leave a Reply

Your email address will not be published. Required fields are marked *