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

Not possible to set numeric keys, even with multiple numbers like "5.1.1", on an object #1042

Open
BennyAlex opened this issue Jul 31, 2024 · 0 comments

Comments

@BennyAlex
Copy link

image

My keys have multiple numbers seperated by dot.

In this check:
image
the isNaN return false. We should only check for positive whole numbers here, all other numbers are not valid array indexes.

But I also wonder why its not allowed to set a numeric key in an object at all. Its not going against any JS rules. It should be possible.

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