Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/getDiff.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { diffChars } from 'diff'

/*Wrapper around jsdiff's diffChars. It returns an object that
* describes which parts of two given strings for comparison
* (original and new) were changed by addition, subtraction or
* remained unchanged.
*/
function diff (value1 = '', value2 = '') {
return diffChars(value1, value2)
}
Expand Down