MCPcopy Index your code
hub / github.com/nodejs/node / areLinesEqual

Function areLinesEqual

lib/internal/assert/myers_diff.js:24–32  ·  view source on GitHub ↗
(actual, expected, checkCommaDisparity)

Source from the content-addressed store, hash-verified

22};
23
24function areLinesEqual(actual, expected, checkCommaDisparity) {
25 if (actual === expected) {
26 return true;
27 }
28 if (checkCommaDisparity) {
29 return (actual + ',') === expected || actual === (expected + ',');
30 }
31 return false;
32}
33
34function myersDiff(actual, expected, checkCommaDisparity = false) {
35 const actualLength = actual.length;

Callers 1

myersDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…