Skip to content
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

Develop #2635

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Develop #2635

wants to merge 4 commits into from

Conversation

KatOlista
Copy link

No description provided.

Copy link

@AndrMar1939 AndrMar1939 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! But let`s make your code better.

@@ -5,7 +5,23 @@
* @param {Object[]} actions
*/
function transformState(state, actions) {
// write code here
for (let i = 0; i < actions.length; i++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (let i = 0; i < actions.length; i++) {
for (let i = 0; i < actions.length; i++) {

'For of' loop would be more readable

Copy link

@qoa11a qoa11a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! 👍
Please, consider rewriting your solution using the for ... of loop.

@@ -5,7 +5,23 @@
* @param {Object[]} actions
*/
function transformState(state, actions) {
// write code here
for (let i = 0; i < actions.length; i++) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@Moroz-Dmytro Moroz-Dmytro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants