An open API service indexing awesome lists of open source software.

https://github.com/ahadcove/betterinterval

A better way to handle intervals
https://github.com/ahadcove/betterinterval

Last synced: about 2 months ago
JSON representation

A better way to handle intervals

Awesome Lists containing this project

README

        

# Better Interval
Better interval is a "Better" way to handle intervals
It wil keep track of if the interval is active or not.

## Why
There are multiple instances where I had to keep track of a interval and now I can much easier

## How to use
```
var t = new Interval(function () {
alert('this is a test');
}, 5000);
console.log(t.cleared); // false
t.clear();
console.log(t.cleared); // true
```