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

Function findMatchingKey

test/unit/mongo_client.test.ts:588–592  ·  view source on GitHub ↗
(o, searchKey)

Source from the content-addressed store, hash-verified

586 ];
587
588 const findMatchingKey = (o, searchKey) => {
589 return Object.keys(o).filter(key => {
590 return key.toLowerCase() === searchKey;
591 })[0];
592 };
593
594 it(`should define known defaults in client.options`, () => {
595 const client = new MongoClient('mongodb://localhost');

Callers 1

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected