-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Solution #2815
base: master
Are you sure you want to change the base?
Solution #2815
Conversation
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.
Good work, but lets make some improvement
src/transformStateWithClones.js
Outdated
for (const key in result) { | ||
delete result[key]; | ||
} |
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.
for (const key in result) { | |
delete result[key]; | |
} | |
result = {} |
src/transformStateWithClones.js
Outdated
@@ -7,7 +7,32 @@ | |||
* @return {Object[]} | |||
*/ | |||
function transformStateWithClones(state, actions) { | |||
// write code here | |||
const result = { ...state }; |
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.
const result = { ...state }; | |
let result = { ...state }; |
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.
Well done! Short and clear, I like it)
No description provided.