Skip to content

Optimize the code #5#54

Open
zbynekrybicka wants to merge 1 commit intoprateekkalra:masterfrom
zbynekrybicka:quick-refactor
Open

Optimize the code #5#54
zbynekrybicka wants to merge 1 commit intoprateekkalra:masterfrom
zbynekrybicka:quick-refactor

Conversation

@zbynekrybicka
Copy link

  • DRY (refactor for shorter and effective process)
  • async to sync
for (const item of items) {} 

is more safe than

items.foreach()

when you are dependent on result in next step.

- DRY
- async to sync
@zbynekrybicka zbynekrybicka changed the title Optimize the code Optimize the code #5 Dec 25, 2025
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.

1 participant