We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b439cca commit 0a0a2a8Copy full SHA for 0a0a2a8
1 file changed
static/extensions/DogeisCut/dogeiscutSet.js
@@ -83,6 +83,9 @@
83
switch (typeof x) {
84
case "object":
85
if (x === null) return "null"
86
+ if (typeof x.jwArrayHandler == "function") {
87
+ return x.jwArrayHandler()
88
+ }
89
if (typeof x.dogeiscutSetHandler == "function") {
90
return x.dogeiscutSetHandler()
91
}
@@ -104,6 +107,10 @@
104
107
return `Set<${formatNumber(this.set.size)}>`
105
108
106
109
110
+ jwArrayHandler() {
111
+ return `Set<${formatNumber(this.set.size)}>`
112
113
+
114
toString() {
115
return `Set: {${JSON.stringify(Array.from(this.set)).slice(1, -1)}}`
116
0 commit comments