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:148–152 ·
view source on GitHub ↗
(a: unknown[] = [], b: unknown[] = [])
Source
from the content-addressed store, hash-verified
146
}
147
148
function hasArrayChanged(a: unknown[] = [], b: unknown[] = []) {
149
return (
150
a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]))
151
);
152
}
Callers
1
componentDidUpdate
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected