This commit is contained in:
Eric Vergnaud 2021-02-13 15:09:34 +08:00
parent 9668ce7dbb
commit 586721462c
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
*/
function arrayToString(a) {
return "[" + a.join(", ") + "]";
return Array.isArray(a) ? ("[" + a.join(", ") + "]") : "null";
}
String.prototype.seed = String.prototype.seed || Math.round(Math.random() * Math.pow(2, 32));