mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
🎉 Add coalesce helper to common data ns.
This commit is contained in:
@@ -141,3 +141,7 @@
|
||||
(if (or (nil? val) (nan? val))
|
||||
default
|
||||
(str val)))
|
||||
|
||||
(defn coalesce
|
||||
[val default]
|
||||
(or val default))
|
||||
|
||||
Reference in New Issue
Block a user