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

Function deepToMap

src/sort.ts:88–91  ·  view source on GitHub ↗

@internal

(t: ReadonlyArray<readonly [string, SortDirection]>)

Source from the content-addressed store, hash-verified

86
87/** @internal */
88function deepToMap(t: ReadonlyArray<readonly [string, SortDirection]>): SortForCmd {
89 const sortEntries: SortPairForCmd[] = t.map(([k, v]) => [`${k}`, prepareDirection(v)]);
90 return new Map(sortEntries);
91}
92
93/** @internal */
94function stringsToMap(t: ReadonlyArray<string>): SortForCmd {

Callers 1

formatSortFunction · 0.85

Calls 2

prepareDirectionFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected