MCPcopy Index your code
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / pickOne

Function pickOne

assets/js/block_ninja.js:230–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229// Returns a random element from an array
230const pickOne = arr => arr[Math.random() * arr.length | 0];
231
232
233

Callers 1

block_ninja.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected