@univerjscorefunctionsTextdiff

@univerjs/core v0.5.4


Function: textDiff()

function textDiff(
   text1, 
   text2, 
   cursorPos?, 
   cleanup?): Diff[]

Defined in: packages/api/tmp/univer-pro/node_modules/.pnpm/fast-diff@1.3.0/node_modules/fast-diff/diff.d.ts:1

Parameters

ParameterType
text1string
text2string
cursorPos?| number | CursorInfo
cleanup?boolean

Returns

Diff[]