(arr)
| 22 | } |
| 23 | |
| 24 | export function shuffle(arr) { |
| 25 | let i = arr.length |
| 26 | |
| 27 | while (i) { |
| 28 | const j = Math.floor(Math.random() * i--) |
| 29 | |
| 30 | ;[arr[j], arr[i]] = [arr[i], arr[j]] |
| 31 | } |
| 32 | |
| 33 | return arr |
| 34 | } |
| 35 | |
| 36 | export function upperFirst(str) { |
| 37 | if (typeof str !== 'string' || str.length === 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected