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

Function isSingleIndexTuple

src/operations/indexes.ts:166–168  ·  view source on GitHub ↗
(t: unknown)

Source from the content-addressed store, hash-verified

164}
165
166function isSingleIndexTuple(t: unknown): t is [string, IndexDirection] {
167 return Array.isArray(t) && t.length === 2 && isIndexDirection(t[1]);
168}
169
170/**
171 * Converts an `IndexSpecification`, which can be specified in multiple formats, into a

Callers 1

Calls 1

isIndexDirectionFunction · 0.85

Tested by

no test coverage detected