MCPcopy
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
74function isMap(t: Sort): t is ReadonlyMap<string, SortDirection> {
75 return t instanceof Map && t.size > 0;
76}
77
78function isReadonlyArray<T>(value: any): value is readonly T[] {
79 return Array.isArray(value);

Callers 1

formatSortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected