[openstreetmap/openstreetmap-website] Add coordinate precision function (PR #5581)
Marwin Hochfelsner
notifications at github.com
Fri Jan 31 07:41:53 UTC 2025
@hlfan commented on this pull request.
>
- if (!o || !d) return;
+ if (!points[0] || !points[1]) return;
Which option would you prefer?
```js
if (!points[0] || !points[1]) return;
if (!(points[0] && points[1])) return;
if (!points.every(p => p)) return;
if (points.some(p => !p)) return;
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5581#pullrequestreview-2585882597
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5581/review/2585882597 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250131/f97ecf73/attachment-0001.htm>
More information about the rails-dev
mailing list