Add isActive
This commit is contained in:
@@ -33,6 +33,10 @@ class Timer {
|
||||
delete this.#timers[identifier];
|
||||
}
|
||||
|
||||
isActive(identifier) {
|
||||
return this.#timers[identifier].isActive();
|
||||
}
|
||||
|
||||
cancelAll() {
|
||||
// Fetch timers
|
||||
let timers = Object.keys(this.#timers);
|
||||
|
||||
Reference in New Issue
Block a user