This commit is contained in:
cupcakearmy
2019-05-22 20:34:58 +02:00
parent 7b81984ce7
commit dcbc4bcdd7
73 changed files with 4138 additions and 0 deletions

9
www/utils/misc.js Normal file
View 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'