We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b43267 commit 97df33bCopy full SHA for 97df33b
1 file changed
lib/encode.js
@@ -31,6 +31,8 @@ encode.getType = function (value) {
31
if (ArrayBuffer.isView(value)) return 'arraybufferview'
32
if (value instanceof Number) return 'number'
33
if (value instanceof Boolean) return 'boolean'
34
+ if (value instanceof Set) return 'set'
35
+ if (value instanceof Map) return 'map'
36
if (value instanceof ArrayBuffer) return 'arraybuffer'
37
return typeof value
38
}
0 commit comments