mirror of
https://github.com/cupcakearmy/obolus.git
synced 2025-09-06 08:10:39 +00:00
client
This commit is contained in:
9
www/utils/misc.js
Normal file
9
www/utils/misc.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export const capitalize = s => s[0].toUpperCase() + s.slice(1)
|
||||
|
||||
const getRandomItemFromArray = a => a[Math.floor((Math.random() * a.length))]
|
||||
|
||||
export const getRandomSlogan = () => '💸 ' + getRandomItemFromArray(
|
||||
['centkrieger', 'pfandsklave', 'minusexperte'],
|
||||
)
|
||||
|
||||
export const getAvatarOfFallback = avatar => avatar || '_fallback'
|
Reference in New Issue
Block a user