mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 20:16:10 +02:00
✨ Improved transformation from and to JS for plugins
This commit is contained in:
parent
42230f2630
commit
ac58a5b8fa
15 changed files with 1359 additions and 622 deletions
|
@ -156,3 +156,8 @@
|
|||
x)
|
||||
|
||||
:else x)))
|
||||
|
||||
(defn clear-empty
|
||||
[^js obj]
|
||||
(when (some? obj)
|
||||
(js* "Object.entries(~{}).reduce((a, [k,v]) => (v == null ? a : (a[k]=v, a)), {}) " obj)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue