MCPcopy
hub / github.com/mongodb/node-mongodb-native / isDeep

Function isDeep

src/sort.ts:70–72  ·  view source on GitHub ↗
(t: Sort)

Source from the content-addressed store, hash-verified

68}
69
70function isDeep(t: Sort): t is ReadonlyArray<readonly [string, SortDirection]> {
71 return Array.isArray(t) && Array.isArray(t[0]);
72}
73
74function isMap(t: Sort): t is ReadonlyMap<string, SortDirection> {
75 return t instanceof Map && t.size > 0;

Callers 1

formatSortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected