mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
比赛计分板
This commit is contained in:
1 parent
9bf3343a64
commit
f73859a42f
4 files changed
+172
-32
No files matched your search
@@ -14,3 +14,16 @@ String.random = function (digit) {
|
||||
str += map[Math.floor(Math.random() * 62)];
|
||||
return str;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Array} a
|
||||
* @param {Array} b
|
||||
*/
|
||||
Array.isDiff = function isDiff(a, b) {
|
||||
if (a.length != b.length) return true;
|
||||
a.sort();
|
||||
b.sort();
|
||||
for (let i in a)
|
||||
if (a[i] != b[i]) return true;
|
||||
return false;
|
||||
};
|
||||
Reference in new issue
Block a user