mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
feat: added seed
This commit is contained in:
6
packages/utils/utils.ts
Normal file
6
packages/utils/utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const capitalize = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1);
|
||||
|
||||
export const getRandomItem = (array: any[]): any => {
|
||||
const randomIndex = Math.floor(Math.random() * array.length);
|
||||
return array[randomIndex];
|
||||
};
|
||||
Reference in New Issue
Block a user