mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-05-30 10:45:22 -04:00
feat: added components
This commit is contained in:
+4
-4
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user