0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-10 14:01:29 -05:00

🎉 Add coalesce helper to common data ns.

This commit is contained in:
Andrey Antukh 2020-04-07 19:51:03 +02:00
parent 92e5fc9980
commit d2863c91db

View file

@ -141,3 +141,7 @@
(if (or (nil? val) (nan? val))
default
(str val)))
(defn coalesce
[val default]
(or val default))