2021-03-14 20:11:39 +01:00
|
|
|
const capitalise = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)
|
2021-02-13 19:55:45 +01:00
|
|
|
|
2021-03-14 20:11:39 +01:00
|
|
|
const shuffle = (s: string) => s.split('').sort(() => 0.5 - Math.random()).join('')
|
|
|
|
|
|
|
|
export {capitalise, shuffle}
|