refactor: improve types testing types definition
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / Utils.ts
index 7f070e49a8aa7fde7f8e268f6369172494c8e13c..a9eb33b3277cbba434c0d7c671fb76834985b6ff 100644 (file)
@@ -3,17 +3,6 @@ export const ifUndefined = <T>(value: T | undefined, isValue: T): T => {
   return value as T
 }
 
-// const isIterable = <T>(obj: T): boolean => {
-//   if (obj == null) {
-//     return false
-//   }
-//   return typeof (obj as unknown as Iterable<T>)[Symbol.iterator] === 'function'
-// }
-
-// const ifNotIterableDo = <T>(obj: T, cb: () => void): void => {
-//   if (isIterable(obj) === false) cb()
-// }
-
 // export const compose = <T>(...fns: ((arg: T) => T)[]): ((x: T) => T) => {
 //   return (x: T) => fns.reduceRight((y, fn) => fn(y), x)
 // }