Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bvaughn/react-error-boundary
/ hasArrayChanged
Function
hasArrayChanged
lib/components/ErrorBoundary.tsx:151–155 ·
view source on GitHub ↗
(a: unknown[] = [], b: unknown[] = [])
Source
from the content-addressed store, hash-verified
149
}
150
151
function hasArrayChanged(a: unknown[] = [], b: unknown[] = []) {
152
return (
153
a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]))
154
);
155
}
Callers
1
componentDidUpdate
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected