setinterval-bykey
v1.0.2
Published
Set Interval By Key
Downloads
125
Readme
Installation
- You need to install the package on your project
npm i setinterval-bykey
How To Use
const setInt = require('setinterval-bykey');
setInt.start(fn, interval, key); // To Start Interval By Key | fn = Function
// Example
setInt.start(functionStart, 20 * 1000, `Interval_For_Test`);
setInt.isRun(key); // To Get If Interval is Available or No | Key Of Interval
// Exmaple
setInt.isRun(`Interval_For_Test`); // Return True
setInt.clear(key); // To Clear Interval | Key Of Interval
// Example
setInt.clear(`Interval_For_Test`); // Return True
setInt.clearAll(); // To Clear All Interval