File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -2307,10 +2307,11 @@ reduces them without incurring seq initialization"
2307
2307
" Return true if the seq function is supported for s"
2308
2308
[s]
2309
2309
(or
2310
- (nil? s)
2311
- (satisfies? ISeqable s)
2312
- (array? s)
2313
- (string? s)))
2310
+ (nil? s)
2311
+ (satisfies? ISeqable s)
2312
+ (js-iterable? s)
2313
+ (array? s)
2314
+ (string? s)))
2314
2315
2315
2316
(defn boolean
2316
2317
" Coerce to boolean"
Original file line number Diff line number Diff line change 443
443
(partition 5 [1 2 3 ]) ()
444
444
445
445
(partition 4 4 [0 0 0 ] (range 10 )) '((0 1 2 3 ) (4 5 6 7 ) (8 9 0 0 ))
446
-
446
+
447
447
(partition -1 [1 2 3 ]) ()
448
448
(partition -2 [1 2 3 ]) ())
449
449
523
523
:initk initk)))]
524
524
(= (into [] (src ))
525
525
(into [] (seq (src )))))))
526
+
527
+ (deftest cljs-3419-seq-js-iterable
528
+ (let [js-set (js/Set. #js [1 2 3 4 ])
529
+ js-map (js/Map. #js [#js [1 2 ] #js [3 4 ]])]
530
+ (is (seqable? js-set))
531
+ (is (seqable? js-map))))
You can’t perform that action at this time.
0 commit comments