MCPcopy Index your code
hub / github.com/facebook/react / areStackTracesEqual

Function areStackTracesEqual

packages/react-devtools-shared/src/hook.js:47–49  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

45// strip them to for the comparison.
46const frameDiffs = / \(\<anonymous\>\)$|\@unknown\:0\:0$|\(|\)|\[|\]/gm;
47function areStackTracesEqual(a: string, b: string): boolean {
48 return a.replace(frameDiffs, '') === b.replace(frameDiffs, '');
49}
50
51const targetConsole: Object = console;
52

Callers 1

overrideMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected