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

an option to detect "inserted" and removed items in arrays #86

Closed
DetachHead opened this issue Oct 7, 2022 · 2 comments
Closed

an option to detect "inserted" and removed items in arrays #86

DetachHead opened this issue Oct 7, 2022 · 2 comments

Comments

@DetachHead
Copy link

diff(['a', 'c', 'd', 'e'], ['a', 'b', 'c', 'd', 'e'])

the current behavior is to treat indexes 1, 2 and 3 as changed and 4 as added

{ '1': 'b', '2': 'c', '3': 'd', '4': 'e' }

it would be nice if it was able to detect that only one value was added. something like this:

{ inserts: { 1: 'b' } }
@anko
Copy link
Contributor

anko commented Oct 7, 2022

Duplicate?: #60 #79 #51

@DetachHead
Copy link
Author

duplicate of #60 i guess

@DetachHead DetachHead closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2022
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

2 participants