Rename random.some to random.subset

This commit is contained in:
Christoph Diehl 2017-04-07 16:59:43 +02:00
parent ba5f56cd0b
commit 671a9a9fe4

View file

@ -123,7 +123,7 @@ var random = {
random.shuffle(newArray); random.shuffle(newArray);
return newArray; return newArray;
}, },
some: function (list, limit) { subset: function (list, limit) {
if (!(list instanceof Array)) { if (!(list instanceof Array)) {
Utils.traceback(); Utils.traceback();
throw new TypeError("random.some() received a non-array type: '" + list + "'"); throw new TypeError("random.some() received a non-array type: '" + list + "'");