refactor(ui): use JSON format as runtime configuration
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / Utils.ts
index 2f9c1ac5e92e669e7113813a378da986f8f11236..54d926ade4012a93944481ef50ff85aa57e04fc0 100644 (file)
@@ -1,3 +1,3 @@
-// export const compose = <T>(...fns: ((arg: T) => T)[]): ((x: T) => T) => {
-//   return (x: T) => fns.reduceRight((y, fn) => fn(y), x)
-// }
+export const compose = <T>(...fns: ((arg: T) => T)[]): ((x: T) => T) => {
+  return (x: T) => fns.reduceRight((y, fn) => fn(y), x)
+}