mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 04:07:14 +02:00
⚡ Add minor performance improvements to asset-section react component
This commit is contained in:
parent
eeaee5ad42
commit
a179f73deb
2 changed files with 44 additions and 23 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
(ns app.util.array
|
||||
"A collection of helpers for work with javascript arrays."
|
||||
(:refer-clojure :exclude [conj! conj]))
|
||||
(:refer-clojure :exclude [conj! conj filter]))
|
||||
|
||||
(defn conj
|
||||
"A conj like function for js arrays."
|
||||
|
@ -44,3 +44,8 @@
|
|||
(defn without-nils
|
||||
[^js/Array o]
|
||||
(.filter o (fn [v] (some? v))))
|
||||
|
||||
(defn filter
|
||||
"A specific filter for js arrays."
|
||||
[pred ^js/Array o]
|
||||
(.filter o pred))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue