feat: added components

This commit is contained in:
Corentin Thomasset
2021-03-14 20:11:39 +01:00
parent 6e0c369398
commit 5fa81533d9
30 changed files with 2405 additions and 1853 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
function capitalise(s: string) {
return s.charAt(0).toUpperCase() + s.slice(1)
}
const capitalise = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)
export {capitalise}
const shuffle = (s: string) => s.split('').sort(() => 0.5 - Math.random()).join('')
export {capitalise, shuffle}