Skip to content

Commit 532bb55

Browse files
added check to see if the querryString is a string or falsy
1 parent a236a49 commit 532bb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-2/implement/querystring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function parseQueryString(queryString) {
22
const queryParams = {};
3-
if (queryString.length === 0) {
3+
if (typeof queryString !== "string" || !queryString) {
44
return queryParams;
55
}
66

0 commit comments

Comments
 (0)