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.
typeof expr
1 parent d59e1af commit c0a4990Copy full SHA for c0a4990
src/Decoder.ts
@@ -13,9 +13,7 @@ const STATE_MAP_VALUE = "map_value";
13
type MapKeyType = string | number;
14
15
const isValidMapKeyType = (key: unknown): key is MapKeyType => {
16
- const keyType = typeof key;
17
-
18
- return keyType === "string" || keyType === "number";
+ return typeof key === "string" || typeof key === "number";
19
};
20
21
type StackMapState = {
0 commit comments