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 b3836ee commit 304d3b0Copy full SHA for 304d3b0
iterator.js
@@ -37,7 +37,7 @@ function Iterator(db, options) {
37
goodOptions(options, i);
38
}
39
this._count = 0;
40
- this._limit = options.limit || -1;
+ this._limit = isNaN(options.limit) ? -1 : options.limit;
41
42
this._keyAsBuffer = 'keyAsBuffer' in options ? !!options.keyAsBuffer : false;
43
this._valueAsBuffer = 'valueAsBuffer' in options ? !!options.valueAsBuffer : false;
0 commit comments