Skip to content

Commit

Permalink
Modify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 2, 2024
1 parent 3334bb0 commit fa384d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,11 @@ export function jsonToQueryParams(json: string | any, ignoreInvalid = true) {
};

const parser = (jsonObj: object, key="") => {
// if object with keys, recurse through key/values
let queryValue = "";

// if object, attempt to recurse through key/value pairs
if (typeof(jsonObj) === "object" && !(jsonObj instanceof Array)) {
try {
// recurse through key/value pairs
const keys = Object.keys(jsonObj);
for (let i=0; i < keys.length; i++) {
// @ts-ignore
Expand Down

0 comments on commit fa384d9

Please sign in to comment.