MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / arrayEquals

Function arrayEquals

local-cli/server/util/attachHMRServer.js:353–362  ·  view source on GitHub ↗
(arrayA: Array<T>, arrayB: Array<T>)

Source from the content-addressed store, hash-verified

351}
352
353function arrayEquals<T>(arrayA: Array<T>, arrayB: Array<T>): boolean {
354 arrayA = arrayA || [];
355 arrayB = arrayB || [];
356 return (
357 arrayA.length === arrayB.length &&
358 arrayA.every((element, index) => {
359 return element === arrayB[index];
360 })
361 );
362}
363
364module.exports = attachHMRServer;

Callers 1

attachHMRServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…