X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FUtils.ts;h=1ad1a7924bb0b5e4eb5e8fc7778a9d89f953eda6;hb=5612b691da864fc2822629bbee32ed8008ee6472;hp=f4a6221a473e93dc460d70bcd40add75843725d0;hpb=d5bd1c008c3b2fbe6426ae12e1e12afe97807c57;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index f4a6221a..1ad1a792 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -1,4 +1,5 @@ import crypto from 'crypto'; + import { v4 as uuid } from 'uuid'; export default class Utils { @@ -14,10 +15,6 @@ export default class Utils { return uuid(); } - public static equals(obj1: unknown, obj2: unknown): boolean { - return JSON.stringify(obj1) === JSON.stringify(obj2); - } - public static async sleep(milliSeconds: number): Promise { return new Promise((resolve) => setTimeout(resolve as () => void, milliSeconds)); }