site-panzai/node_modules/on-change/source/smart-clone/diff/is-diff-arrays.js

9 lines
194 B
JavaScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
export default function isDiffArrays(clone, value) {
if (clone === value) {
return false;
}
return clone.length !== value.length
|| clone.some((item, index) => value[index] !== item);
}