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

Function parseUnsignedInteger

src/utils.ts:1142–1146  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1140}
1141
1142export function parseUnsignedInteger(value: unknown): number | null {
1143 const parsedInt = parseInteger(value);
1144
1145 return parsedInt != null && parsedInt >= 0 ? parsedInt : null;
1146}
1147
1148/**
1149 * This function throws a MongoAPIError in the event that either of the following is true:

Callers 1

resolveOptionsMethod · 0.90

Calls 1

parseIntegerFunction · 0.85

Tested by

no test coverage detected