mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 03:06:22 +02:00
Categorize patterns
This commit is contained in:
3
utils/randomFromArray.ts
Normal file
3
utils/randomFromArray.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function randomFromArray<T>(array: T[]): T {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
};
|
||||
Reference in New Issue
Block a user