Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9897775
react_like_bigint_parse.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
331 B
Referenced Files
None
Subscribers
None
react_like_bigint_parse.js
View Options
const
samples
=
[
"$n0"
,
"$n1"
,
"$n123"
,
"$n-42"
,
"$n0x10"
,
];
for
(
const
value
of
samples
)
{
try
{
const
parsed
=
BigInt
(
value
.
slice
(
2
));
console
.
log
(
`
${
value
}
->
${
parsed
.
toString
()
}
`
);
}
catch
(
error
)
{
console
.
log
(
`
${
value
}
-> error:
${
error
&&
error
.
message
?
error
.
message
:
String
(
error
)
}
`
);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 1, 1:41 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
587678
Default Alt Text
react_like_bigint_parse.js (331 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment