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);
|
||||
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 + "'");
|
||||
|
|
Loading…
Reference in a new issue