[openstreetmap/openstreetmap-website] Reevaluate iteration methods (PR #5604)

Anton Khorev notifications at github.com
Tue Feb 4 15:42:39 UTC 2025


@AntonKhorev commented on this pull request.



> +        layers
+          .filter(other => other !== layer)
+          .forEach(map.removeLayer);

Have you tried running it?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5604#pullrequestreview-2593275580
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5604/review/2593275580 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250204/3b4a4663/attachment-0001.htm>


More information about the rails-dev mailing list