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 4a9e970 commit 586bbb8Copy full SHA for 586bbb8
src/UrlParams.ts
@@ -263,7 +263,7 @@ class ParamParser {
263
type: { [s: string]: T } | ArrayLike<T>,
264
): T | undefined {
265
const value = this.getParam(name);
266
- if (value && Object.values(type).includes(value as T)) {
+ if (value !== null && Object.values(type).includes(value as T)) {
267
return value as T;
268
}
269
return undefined;
0 commit comments