MCPcopy Create free account
hub / github.com/0wczar/airframe-react / randomArray

Function randomArray

app/utilities.js:6–9  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

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

Callers 8

randomArrayFunction · 0.90
generateRowFunction · 0.90
generateRowFunction · 0.90
CellEdit.jsFile · 0.90
generateItemFunction · 0.90
generateUserFunction · 0.90
generateItemFunction · 0.90
randomAvatarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected