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
1 changed files with 1 additions and 1 deletions

View File

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