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.
getPrimitiveType
1 parent c8a0fc8 commit a3e204dCopy full SHA for a3e204d
packages/core/src/attributes.ts
@@ -85,12 +85,10 @@ const getPrimitiveType: (
85
? 'string'
86
: typeof item === 'boolean'
87
? 'boolean'
88
- : typeof item === 'number'
89
- ? Number.isNaN(item)
90
- ? null
91
- : Number.isInteger(item)
92
- ? 'integer'
93
- : 'double'
+ : typeof item === 'number' && !Number.isNaN(item)
+ ? Number.isInteger(item)
+ ? 'integer'
+ : 'double'
94
: null;
95
96
function getTypedAttributeValue(value: unknown): TypedAttributeValue {
0 commit comments