mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 15:26:15 -04:00
refactor: fixed more sonarcloud issues
This commit is contained in:
parent
a866ac6070
commit
b34eb4c1ac
12 changed files with 32 additions and 109 deletions
|
@ -1,7 +1,5 @@
|
|||
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('')
|
||||
const shuffle = (s: string) => s.split('').sort(() => 0.5 - Math.random()).join('')
|
||||
|
||||
export {capitalise, shuffle}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue