[openstreetmap/openstreetmap-website] Reevaluate iteration methods (PR #5604)
Marwin Hochfelsner
notifications at github.com
Tue Feb 4 11:55:14 UTC 2025
Converts more loops to for..of loops due to increased readability and change .forEach() in combination with .push() to .map().
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5604
-- Commit Summary --
* Reevaluate iteration methods
-- File Changes --
M app/assets/javascripts/index.js (4)
M app/assets/javascripts/index/directions.js (4)
M app/assets/javascripts/index/directions/fossgis_valhalla.js (30)
M app/assets/javascripts/index/directions/graphhopper.js (33)
M app/assets/javascripts/index/history.js (9)
M app/assets/javascripts/index/layers/notes.js (4)
M app/assets/javascripts/index/query.js (36)
M app/assets/javascripts/leaflet.layers.js (8)
M app/assets/javascripts/leaflet.share.js (46)
M app/assets/javascripts/router.js (10)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5604.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5604.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5604
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5604 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250204/d89d8b0e/attachment.htm>
More information about the rails-dev
mailing list