refactor(simulator): make OCPPIncomingRequestService class inherit from
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / Utils.ts
index 36ecd4b7e2ae52cb52403b5377d6d3713044d633..8ce3b6eca5b37c27dca29faf6a970ea8a0f9a980 100644 (file)
@@ -9,11 +9,11 @@ export default class Utils {
     return value as T;
   }
 
-  public static isIterable(obj: any): boolean {
+  public static isIterable<T>(obj: T): boolean {
     if (obj === null || obj === undefined) {
       return false;
     }
-    return typeof obj[Symbol.iterator] === 'function';
+    return typeof (obj as any)[Symbol.iterator] === 'function';
   }
 
   // public static ifNotIterableDo<T>(obj: T, cb: () => void): void {