⬆️ Upgrade to beicon2 (part2)

This commit is contained in:
Andrey Antukh 2023-12-21 20:47:29 +01:00 committed by Alonso Torres
parent 96f5a33f5f
commit ccf063b8ef
5 changed files with 67 additions and 49 deletions

View file

@ -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)