test: improve clone() test expectation
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / Utils.ts
index ea51bc23121a2b47d4813a5098843564cae31c91..2f9c1ac5e92e669e7113813a378da986f8f11236 100644 (file)
@@ -1,23 +1,3 @@
-const isUndefined = (value: unknown): boolean => {
-  return typeof value === 'undefined'
-}
-
-export const ifUndefined = <T>(value: T | undefined, isValue: T): T => {
-  if (isUndefined(value) === true) return isValue
-  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)
 // }