}
public static async sleep(milliSeconds: number): Promise<NodeJS.Timeout> {
- return new Promise(resolve => setTimeout(resolve as () => void, milliSeconds));
+ return new Promise((resolve) => setTimeout(resolve as () => void, milliSeconds));
}
public static formatDurationMilliSeconds(duration: number): string {
}
public static isUndefined(value: unknown): boolean {
- return typeof value === 'undefined';
+ return value === undefined;
}
public static isNullOrUndefined(value: unknown): boolean {