fix 公共方法
This commit is contained in:
parent
6a0a158fba
commit
566c3aeb7b
@ -233,7 +233,7 @@ export function ctor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Array.prototype.random = function (this: Array<any>) {
|
Array.prototype.random = function (this: Array<any>) {
|
||||||
return this[PublicShared.randomNum(0, this.length)];
|
return this[PublicShared.randomNum(0, this.length - 1)];
|
||||||
};
|
};
|
||||||
|
|
||||||
Array.prototype.intersection = function (this: Array<any>, other: Array<any>) {
|
Array.prototype.intersection = function (this: Array<any>, other: Array<any>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user