File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/mout/src/random/choice.js
Back
define(['./randInt', '../lang/isArray'], function (randInt, isArray) { /** * Returns a random element from the supplied arguments * or from the array (if single argument is an array). */ function choice(items) { var target = (arguments.length === 1 && isArray(items))? items : arguments; return target[ randInt(0, target.length - 1) ]; } return choice; });
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings