UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 100 B
export function arrPick(r){return!r||!Array.isArray(r)||r.length<1?null:r[Math.random()*r.length|0]}