function
diff.words
oldText: string,
newText: string,
Compare two strings word by word. A token is a word of Latin letters, digits and _, a run of spaces, a line ending, or any other single character.
@returns
The changes, or undefined if there are more than maxEditLength edits
oldText: string,
newText: string,
Compare two strings word by word. A token is a word of Latin letters, digits and _, a run of spaces, a line ending, or any other single character.
@returns
The changes, or undefined if there are more than maxEditLength edits
Referenced types
interface Options
- maxEditLength?: number
Return
undefinedwhen the diff adds and removes more than this many tokens in total. An integer from 0, orInfinity.