mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 04:07:14 +02:00
⬆️ Upgrade to beicon2 (part2)
This commit is contained in:
parent
96f5a33f5f
commit
ccf063b8ef
5 changed files with 67 additions and 49 deletions
|
@ -6,10 +6,15 @@
|
|||
|
||||
(ns app.util.array
|
||||
"A collection of helpers for work with javascript arrays."
|
||||
(:refer-clojure :exclude [conj!]))
|
||||
(:refer-clojure :exclude [conj! conj]))
|
||||
|
||||
(defn conj
|
||||
"A conj like function for js arrays."
|
||||
[a v]
|
||||
(js* "[...~{}, ~{}]" a v))
|
||||
|
||||
(defn conj!
|
||||
"A conj like function for js arrays."
|
||||
"A conj! like function for js arrays."
|
||||
[a v]
|
||||
(.push ^js a v)
|
||||
a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue