-
-
Notifications
You must be signed in to change notification settings - Fork 96
ITP_JAN_25 | HASAN DEMIROZ | Module-Data-Groups | SPRINT 2 #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
ITP_JAN_25 | HASAN DEMIROZ | Module-Data-Groups | SPRINT 2 #488
Conversation
Hi @hasandemiroz, please add 'needs review' label to get a quicker review! |
if (queryParams[key]) { | ||
queryParams[key] = [].concat(queryParams[key], value); | ||
} else { | ||
queryParams[key] = value; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this line do? Does concat() necessary when join() has already joined all values back into one string?
Sprint-2/interpret/invert.js
Outdated
|
||
// c) What does Object.entries return? Why is it needed in this program? | ||
// The current return value is wrong because the key and value are not swapped properly. The value is being overwritten by the key instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is duplicate answer. Please write an anwer to the question c.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.