Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jestjs/jest
/ sortMap
Function
sortMap
packages/jest-diff/src/index.ts:129–131 ·
view source on GitHub ↗
(map: Map<unknown, unknown>)
Source
from the content-addressed store, hash-verified
127
}
128
129
function
sortMap(map: Map<unknown, unknown>) {
130
return
new
Map([...map].sort());
131
}
132
133
function
sortSet(set: Set<unknown>) {
134
return
new
Set([...set].sort());
Callers
1
diff
Function · 0.85
Calls
1
sort
Method · 0.45
Tested by
no test coverage detected