removeSafeTimer(type, name) {
    if (this[type].has(name)) {
      const timer = this[type].get(name);

      if (typeof timer === 'object' && typeof timer.clear === 'function') {
        timer.clear();
      }

      this[type].delete(name);
    }
  }
A friendly helper to clear safe-timers timeout and interval
@param {string} type
@param {string} name