mirror of
https://github.com/cupcakearmy/obolus.git
synced 2024-12-23 08:36:26 +00:00
9 lines
335 B
JavaScript
9 lines
335 B
JavaScript
|
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'
|