X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomposables%2FUtils.ts;h=2f9c1ac5e92e669e7113813a378da986f8f11236;hb=cfab8dc9ea7801746461d4e8d6ac9852deb678b5;hp=a9eb33b3277cbba434c0d7c671fb76834985b6ff;hpb=13a6f27c10768faa05acf33fd8e0637511d49e3e;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/composables/Utils.ts b/ui/web/src/composables/Utils.ts index a9eb33b3..2f9c1ac5 100644 --- a/ui/web/src/composables/Utils.ts +++ b/ui/web/src/composables/Utils.ts @@ -1,8 +1,3 @@ -export const ifUndefined = (value: T | undefined, isValue: T): T => { - if (value === undefined) return isValue - return value as T -} - // export const compose = (...fns: ((arg: T) => T)[]): ((x: T) => T) => { // return (x: T) => fns.reduceRight((y, fn) => fn(y), x) // }