(arr)
| 4 | })(require.context('./images/avatars', true, /.*/)); |
| 5 | |
| 6 | export function randomArray(arr) { |
| 7 | const index = Math.round(Math.random() * (arr.length - 1)); |
| 8 | return arr[index]; |
| 9 | } |
| 10 | |
| 11 | export function randomAvatar() { |
| 12 | return randomArray(allAvatars); |
no outgoing calls
no test coverage detected