Picks an arbitrary suffix.
This is part of package extra-array.
This is browserified, minified version of @extra-array/suffix.
It is exported as global variable array_suffix.
CDN: unpkg, jsDelivr.
array.suffix(x, [n], [r]);
// x: an array
// n: number of values (-1 => any)
// r: random seed 0->1
const array = require("extra-array");
var x = [1, 2, 3];
array.suffix(x);
// [ 2, 3 ]
array.suffix(x, 1);
// [ 3 ]
array.suffix(x, -1, 0.5);
// [ 2, 3 ]