The function Number.isFinite
returns false
for all arguments of type bigint
. So the formatting function throws immediately. It would be helpful if bigint
would be supported as well. I would like to use it with Node's fs.stat
, which now can return bigint
values for file sizes.
(I tested how the function would behave without the check, and unfortunately the Math
functions do not support bigint
arguments: Cannot convert a BigInt value to a number
at Math.log
)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too