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

Function pairToMap

src/sort.ts:83–85  ·  view source on GitHub ↗

@internal

(v: readonly [string, SortDirection])

Source from the content-addressed store, hash-verified

81
82/** @internal */
83function pairToMap(v: readonly [string, SortDirection]): SortForCmd {
84 return new Map([[`${v[0]}`, prepareDirection([v[1]])]]);
85}
86
87/** @internal */
88function deepToMap(t: ReadonlyArray<readonly [string, SortDirection]>): SortForCmd {

Callers 1

formatSortFunction · 0.85

Calls 1

prepareDirectionFunction · 0.85

Tested by

no test coverage detected