Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BigInt in the operators #778

Open
ilikejamesdw opened this issue Oct 13, 2022 · 0 comments
Open

Support BigInt in the operators #778

ilikejamesdw opened this issue Oct 13, 2022 · 0 comments

Comments

@ilikejamesdw
Copy link

ilikejamesdw commented Oct 13, 2022

Bit odd that:

> numeral(10n)
{ _input: 10n, _value: 10 }

is fine. And,

> numeral(10n).add('10')
{ _input: 10n, _value: 20 }

is also fine. But,

> numeral(10n).add(10n)
Uncaught TypeError: Cannot mix BigInt and other types, use explicit conversions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant