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

Reduce JS forEach usage #5494

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Reduce JS forEach usage #5494

merged 1 commit into from
Aug 28, 2023

Conversation

distantnative
Copy link
Member

No description provided.

Verified

This commit was signed with the committer’s verified signature.
distantnative Nico Hoffmann ෴.
@distantnative distantnative force-pushed the v4/refactor/js-foreach branch from bd01a90 to 4ca64bd Compare August 20, 2023 13:35
@ovenum
Copy link
Contributor

ovenum commented Aug 21, 2023

Just out of pure curiosity: is this for performance optimisation and is .forEach really that bad in the context of the kirby panel? Or what is the motivation behind not using forEach functions?

@distantnative
Copy link
Member Author

@ovenum More about consistent coding style. I personally think the for loops are also easier to read and overlook

@ovenum
Copy link
Contributor

ovenum commented Aug 21, 2023

Thanks for the explanation @distantnative! Relieved that forEach has not some hidden problem i’ve never heard of : )

@bastianallgeier bastianallgeier modified the milestones: 4.0.0, 4.0.0-beta.1 Aug 28, 2023
@bastianallgeier bastianallgeier merged commit e011b79 into v4/develop Aug 28, 2023
@bastianallgeier bastianallgeier deleted the v4/refactor/js-foreach branch August 28, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants