implementation of myers diff algorithm
implementation of myers diff algorithm
This uses the An O(ND) Difference Algorithm and Its Variations Also see http://simplygenius.net/Article/DiffTutorial2 and http://www.mathertel.de/Diff/ViewSrc.aspx for more inspiration
$ npm install diff
$ component install Swatinem/diff
Given two arrays (or array-likes, such as strings) a
and b
and an optional
equal function eql
, this will return an array with the following operations:
b
and will be inserteda
and will be removeda
will be replaced by the element from b
.LGPLv3