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

Function isUint8Array

src/utils.ts:57–64  ·  src/utils.ts::isUint8Array
(value: unknown)

Source from the content-addressed store, hash-verified

55 * @param value - any value that may be a Uint8Array
56 */
57export function isUint8Array(value: unknown): value is Uint8Array {
58 return (
59 value != null &&
60 typeof value === class="st">'object' &&
61 Symbol.toStringTag in value &&
62 value[Symbol.toStringTag] === class="st">'Uint8Array'
63 );
64}
65
66/**
67 * Determines if a connection's address matches a user provided list

Callers 2

maxDocumentLengthEnsurerFunction · 0.90
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected