Raynos / observ-array

An array containing observable values
MIT License
26 stars 4 forks source link

struggling to understand how to use _diff #17

Open pedalpete opened 9 years ago

pedalpete commented 9 years ago

I've been looking through the _diff array, and from what I can see, I'm getting an object of the entries currently in my observ-array.

The info I'm hoping to get from the _diff is how the array changed, but I don't see how to get that.

For instance, after a 'push' function, I'd like to see what the newly added item is, and on a 'splice' I'd like to be able to see which item was removed. Is this possible with _diff?

Raynos commented 9 years ago

It should be. The _diff contains an array of splice operations, I think