refactor: remove isUndefined() leftover
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / Utils.ts
index ea51bc23121a2b47d4813a5098843564cae31c91..7f070e49a8aa7fde7f8e268f6369172494c8e13c 100644 (file)
@@ -1,9 +1,5 @@
-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
+  if (value === undefined) return isValue
   return value as T
 }