-
Notifications
You must be signed in to change notification settings - Fork 42
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
Correctly handle remove from an array #23
Conversation
@manuelstofer Can you please review this PR? |
@manuelstofer This PR blocks my project. Can you pleaser review it? |
This change may break backward compatibility for lots of people. It's definitely not a bug that array element is removed without changing indices of other elements. Arguably, it's a feature. |
It think it could be better to make it an option, some people may still need old functionality for arrays. |
Sorry, I see it is a new version. Still a comment that old functionality may be needed still applies. |
Yes, maybe I merged it a bit too fast. Might have been better to add a second function for that behavior. @epoberezkin I currently don't have too much time to maintain the library. Would you be interested? |
I can keep an eye on it, wouldn't want to be the sole maintainer though, it's still your baby :) |
@epoberezkin It's easy to add new and will create new PR. + I think |
+ I can add |
ok. And also please add a notice in readme about the change in "remove" functionality for arrays in 0.6.0 |
Sounds good. @epoberezkin I added you on to the git repository and on npm |
Currently
remove
usedelete parent[finalToken]
both object and arrays.Here is how JS interperet
delete
on array:So instead of deleting element
delete
replace it withnull
.@manuelstofer Can you please review this PR?