File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 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"
23072307  " Return true if the seq function is supported for s" 
23082308  [s]
23092309  (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)))
23142315
23152316(defn  boolean 
23162317  " Coerce to boolean" 
Original file line number Diff line number Diff line change 443443    (partition  5  [1  2  3 ]) ()
444444
445445    (partition  4  4  [0  0  0 ] (range  10 )) '((0  1  2  3 ) (4  5  6  7 ) (8  9  0  0 ))
446-               
446+ 
447447    (partition  -1  [1  2  3 ]) ()
448448    (partition  -2  [1  2  3 ]) ())
449449
523523                    :initk  initk)))]
524524      (=  (into  [] (src ))
525525        (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