JavaScript text comparison

background:
above:

ab

  • 1ab
  • 2ba
  • 3ab

:

data:[
    {
        busId:"1000",
        changeAfter:"\r\n\r\n*\r\n\r\n",
        changeBefore:"\r\n",
        ...
    }
]

question:
1. The Great God provides some ideas, or nb helps to come up with a pseudo code
2. If not, provide a plug-in for npm

Apr.02,2021

this can be

https://github.com/prettydiff.


it seems that this can be mergeley


Code this:
https://github.com/cezary/rea.
demo address:
http://cezarywojtkowski.com/r.


No NB, Poor performance

Menu