D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
alt-nodejs24
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
diff
/
libesm
/
diff
/
Filename :
array.js
back
Copy
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); }