MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / arrShallowEquals

Function arrShallowEquals

packages/utils/src/misc.ts:64–68  ·  view source on GitHub ↗
(arr1: any[], arr2: any[])

Source from the content-addressed store, hash-verified

62}
63
64export function arrShallowEquals(arr1: any[], arr2: any[]): boolean {
65 if (!Array.isArray(arr1) || !Array.isArray(arr2)) return false;
66 if (arr1.length !== arr2.length) return false;
67 return arr1.every(item => arr2.includes(item));
68}
69
70/**
71 * 判断当前 meta 是否从 vc prototype 转换而来

Callers 1

misc.test.tsFile · 0.90

Calls 1

everyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…