websites: snapshot + todo: init

This commit is contained in:
nym21
2025-07-07 13:16:43 +02:00
parent d31d47eb32
commit bff22b5182
9 changed files with 481 additions and 121 deletions

View File

@@ -149,6 +149,13 @@ function createUtils() {
}
return range;
},
/**
* @template T
* @param {T[]} array
*/
random(array) {
return array[Math.floor(Math.random() * array.length)];
},
};
const dom = {