@extra-array/value.min
v2.10.19
Published
Picks an arbitrary value.
Readme
Picks an arbitrary value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Similar: value, values, hasValue, searchValue.
This is part of package extra-array.
This is browserified, minified version of @extra-array/value. It is exported as global variable array_value. CDN: unpkg, jsDelivr.
array.value(x, [r]);
// x: an array
// r: random seed 0->1const array = require("extra-array");
var x = [1, 2, 3];
array.value(x);
// 3
array.value(x, 0.5);
// 2