-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
deepKeys works wrong for sparsed arrays #109
Comments
I think the behavior is the correct one. Sparse arrays is a misfeature and I don't plan to go through hoops to support it. My only intention was for it to not crash. Sparse arrays in JavaScript can be useful in some cases, but there are several reasons why they might be considered disadvantageous or bad practice for many scenarios:
Given these reasons, it is often recommended to use alternative data structures like sets, maps, or objects when you need to store non-sequential keys, as they do not suffer from the same downsides as sparse arrays in JavaScript. |
@sindresorhus Anyway So if I fix this, will you merge it?? |
Yes |
check #110 |
deepKeys
should not return not existed keysrelated to #108
The text was updated successfully, but these errors were encountered: