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 1887fa4 commit 865f499Copy full SHA for 865f499
src/main/cljs/cljs/core.cljs
@@ -10532,7 +10532,12 @@ reduces them without incurring seq initialization"
10532
(.map
10533
(js-keys obj)
10534
(fn [k]
10535
- (MapEntry. (cond-> k (some? (re-matches #"[A-Za-z_\*\+\?!\-'][\w\*\+\?!\-']*" k)) keyword) (unchecked-get obj k) nil)))
+ (reify
10536
+ IMapEntry
10537
+ (-key [_]
10538
+ (cond-> k (some? (.match k #"[A-Za-z_\*\+\?!\-'][\w\*\+\?!\-']*")) keyword))
10539
+ (-val [_]
10540
+ (unchecked-get obj k)))))
10541
pr-writer writer opts))
10542
10543
(array? obj)
0 commit comments