We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b864d commit e173e54Copy full SHA for e173e54
src/main/cljs/cljs/core.cljs
@@ -10595,15 +10595,17 @@ reduces them without incurring seq initialization"
10595
(MapEntry. (thisfn (key x)) (thisfn (val x)) nil)
10596
10597
(coll? x)
10598
- (into (empty x) (map thisfn x))
+ (into (empty x) (map thisfn) x)
10599
10600
(array? x)
10601
- (vec (map thisfn x))
+ (persistent!
10602
+ (reduce #(conj! %1 (thisfn %2))
10603
+ (transient []) x))
10604
10605
(identical? (type x) js/Object)
- (into {} (for [k (js-keys x)]
- [(keyfn k) (thisfn (unchecked-get x k))]))
10606
-
10607
+ (reduce (fn [r k] (assoc! r (keyfn k) (thisfn (gobject/get x k))))
10608
+ (transient {}) (js-keys x)))
10609
:else x))]
10610
(f x))))
10611
0 commit comments