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

Number shouldnt accept arrays #1843

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HamzaM3
Copy link

@HamzaM3 HamzaM3 commented Nov 25, 2022

This is crazy, but parseFloat casts arrays as well !!

@HamzaM3
Copy link
Author

HamzaM3 commented Nov 25, 2022

Could you please tell me what is the exact behavior expected here. Do we want to cast strings and that's it ? Because I understand that parseFloat does a toString before casting. So we are casting anything that has a toString that starts with a number ! Does the user expect this ?

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

Successfully merging this pull request may close these issues.

None yet

1 participant