Skip to content

Commit a9e6b71

Browse files
Optimize integer serialization (#416)
1 parent 2f77288 commit a9e6b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function $asInteger (i) {
272272
if (typeof i === 'bigint') {
273273
return i.toString()
274274
} else if (Number.isInteger(i)) {
275-
return $asNumber(i)
275+
return '' + i
276276
} else {
277277
/* eslint no-undef: "off" */
278278
return $asNumber(parseInteger(i))

0 commit comments

Comments
 (0)