mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 10:08:30 +02:00
🎉 Add coalesce
helper to common data ns.
This commit is contained in:
parent
92e5fc9980
commit
d2863c91db
1 changed files with 4 additions and 0 deletions
|
@ -141,3 +141,7 @@
|
|||
(if (or (nil? val) (nan? val))
|
||||
default
|
||||
(str val)))
|
||||
|
||||
(defn coalesce
|
||||
[val default]
|
||||
(or val default))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue