Add more Webpack Commons & utils

This commit is contained in:
Vendicated 2022-10-09 19:48:42 +02:00
parent bb7332cefd
commit 2105de8ca5
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
4 changed files with 25 additions and 0 deletions

View file

@ -125,3 +125,7 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string =
export function classes(...classes: string[]) {
return classes.join(" ");
}
export function sleep(ms: number): Promise<void> {
return new Promise(r => setTimeout(r, ms));
}