MCPcopy Create free account
hub / github.com/IvanAdmaers/react-roulette-pro / reproductionArray

Function reproductionArray

example/src/utills/reproductionArray.js:1–5  ·  view source on GitHub ↗
(array = [], length = 0)

Source from the content-addressed store, hash-verified

1const reproductionArray = (array = [], length = 0) => [
2 ...Array(length)
3 .fill('_')
4 .map(() => array[Math.floor(Math.random() * array.length)]),
5];
6
7export default reproductionArray;

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected