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:
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
Reference in a new issue