query-params-parser
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -22,3 +22,6 @@ export function parseParams(baseObject, params = new URLSearchParams(window.location.search), arrSeparator = ',') { | ||
for(const [key, value] of Object.entries(baseObject)) { | ||
if(!value) continue; | ||
if(!value) { | ||
params.delete(key); | ||
continue; | ||
} | ||
@@ -25,0 +28,0 @@ if(params.has(key)) { |
{ | ||
"name": "query-params-parser", | ||
"author": "Lucas Levandoski", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "A simple library to parse query params into proper types", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
10178
170