We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c929a4 commit 06abe94Copy full SHA for 06abe94
src/write_concern.ts
@@ -75,7 +75,7 @@ export class WriteConcern {
75
options?: WriteConcernOptions | WriteConcern | W,
76
inherit?: WriteConcernOptions | WriteConcern
77
): WriteConcern | undefined {
78
- if (typeof options === 'undefined') return undefined;
+ if (options == null) return undefined;
79
inherit = inherit ?? {};
80
let opts;
81
if (typeof options === 'string' || typeof options === 'number') {
0 commit comments