mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 15:26:15 -04:00
7 lines
216 B
TypeScript
7 lines
216 B
TypeScript
import {random} from './random'
|
|
|
|
const capitalise = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)
|
|
|
|
const shuffle = (s: string) => s.split('').sort(() => 0.5 - random()).join('')
|
|
|
|
export {capitalise, shuffle}
|