Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mongodb/node-mongodb-native
/ isMap
Function
isMap
src/sort.ts:74–76 ·
view source on GitHub ↗
(t: Sort)
Source
from the content-addressed store, hash-verified
72
}
73
74
function
isMap(t: Sort): t is ReadonlyMap<string, SortDirection> {
75
return
t instanceof Map && t.size > 0;
76
}
77
78
function
isReadonlyArray<T>(value: any): value is readonly T[] {
79
return
Array.isArray(value);
Callers
1
formatSort
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected