(size)
| 33 | ]; |
| 34 | |
| 35 | function makeid(size) { |
| 36 | let text = ''; |
| 37 | const possible = |
| 38 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; |
| 39 | for (let i = 0; i < size; i += 1) { |
| 40 | text += possible |
| 41 | .charAt(Math.floor(Math.random() * possible.length)); |
| 42 | } |
| 43 | return text; |
| 44 | } |
| 45 | |
| 46 | function shuffle(array) { |
| 47 | let randomIndex; |
no outgoing calls
no test coverage detected