Zap splits

This commit is contained in:
2023-09-14 12:31:17 +01:00
parent 4864ef6831
commit d2baf9bd5b
28 changed files with 907 additions and 562 deletions

View File

@ -43,6 +43,10 @@ export function unixNowMs() {
return new Date().getTime();
}
export function jitter(n: number) {
return n * 2 * Math.random() - n;
}
export function deepClone<T>(obj: T) {
if ("structuredClone" in window) {
return structuredClone(obj);