refactor: use native cloning function
[e-mobility-charging-stations-simulator.git] / src / utils / Utils.ts
index 9bd5a9bb3ec990e16d92cfcc95dc3070ea9ec636..12c206ff63849ec0303c37a7ce8c41fffc5c29bb 100644 (file)
@@ -12,7 +12,6 @@ import {
   minutesToSeconds,
   secondsToMilliseconds
 } from 'date-fns'
-import { clone as cloneDeep } from 'rambda'
 
 import { Constants } from './Constants.js'
 import {
@@ -213,7 +212,7 @@ export const extractTimeSeriesValues = (timeSeries: TimestampedData[]): number[]
 }
 
 export const clone = <T>(object: T): T => {
-  return cloneDeep<T>(object)
+  return structuredClone<T>(object)
 }
 
 /**