Rename random.some to random.subset
This commit is contained in:
parent
ba5f56cd0b
commit
671a9a9fe4
1 changed files with 1 additions and 1 deletions
|
@ -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 + "'");
|
||||||
|
|
Loading…
Reference in a new issue