Closed dmsnell closed 4 months ago
oh I was about to add this to my PR 😂 thank you 👍
oh I was about to add this to my PR 😂 thank you 👍
we were talking back and forth and I figured that instead of asking you to do so I might as well just push it out. what's the point of having a fork if you don't push through your own work? 🙃
Resolves Google/diff-match-patch#39
It can be useful to extract
Diff
elements using destructuring assignment. For example:Because the
Diff
object is not an array, however, this is not possible, even though it acts like an array.In this patch a new
Symbol.iterator
method is added to theDiff
class so that this pattern can be used.Props: @JackuB, @GrosSacASac, @TheSpyder