Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/diff-sequences
npm install @rbxts-js/diff-sequencesisCommon and foundSubsequence.
stringToArray function is implemented to convert input strings to arrays for tests.
index + 1.
NOT_YET_SET are replaced with just a 0 since this is a JS-specific workaround.
0 as a true value so nChange || baDeltaLength needs to be written as nChange ~= 0 and nChange or baDeltaLength.