simplify tools imports

This commit is contained in:
Gavin McDonald
2025-07-04 14:18:38 -04:00
parent c6e316a1f8
commit b4b0c853f1
14 changed files with 29 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
export default function getRandomItems<T>(items: T[], count: number): T[] {
export const getRandomItems = <T>(items: T[], count: number): T[] => {
const shuffled = [...items];
// Fisher-Yates shuffle
@@ -8,4 +8,4 @@ export default function getRandomItems<T>(items: T[], count: number): T[] {
}
return count > shuffled.length ? shuffled : shuffled.slice(0, count);
}
};