MCPcopy Create free account
hub / github.com/github/awesome-copilot / arraysEqual

Function arraysEqual

eng/clean-materialized-plugins.mjs:135–141  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

133}
134
135function arraysEqual(left, right) {
136 if (!Array.isArray(left) || !Array.isArray(right) || left.length !== right.length) {
137 return false;
138 }
139
140 return left.every((value, index) => value === right[index]);
141}
142
143function sortPluginEntries(entries) {
144 return [...entries].sort((left, right) => left.localeCompare(right));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected