repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): Bump jsdom from 23.0.1 to 23.1.0 in /ui/web
[e-mobility-charging-stations-simulator.git]
/
ui
/
web
/
src
/
composables
/
Utils.ts
diff --git
a/ui/web/src/composables/Utils.ts
b/ui/web/src/composables/Utils.ts
index ea51bc23121a2b47d4813a5098843564cae31c91..7f070e49a8aa7fde7f8e268f6369172494c8e13c 100644
(file)
--- a/
ui/web/src/composables/Utils.ts
+++ b/
ui/web/src/composables/Utils.ts
@@
-1,9
+1,5
@@
-const isUndefined = (value: unknown): boolean => {
- return typeof value === 'undefined'
-}
-
export const ifUndefined = <T>(value: T | undefined, isValue: T): T => {
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
}
return value as T
}