Preview: array.js
Size: 370 B
/proc/self/root/opt/alt/alt-nodejs24/root/lib/node_modules/npm/node_modules/diff/libesm/diff/array.js
import Diff from './base.js';
class ArrayDiff extends Diff {
tokenize(value) {
return value.slice();
}
join(value) {
return value;
}
removeEmpty(value) {
return value;
}
}
export const arrayDiff = new ArrayDiff();
export function diffArrays(oldArr, newArr, options) {
return arrayDiff.diff(oldArr, newArr, options);
}
Directory Contents
Dirs: 0 × Files: 8