mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-05-28 01:42:38 -04:00
refactor: fixed more sonarcloud issues
This commit is contained in:
+1
-3
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user