Просмотр исходного кода

fix: distinct-by: convert col to seq first

rcmerci 3 лет назад
Родитель
Сommit
fa0a03263d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/main/frontend/util.cljc

+ 3 - 1
src/main/frontend/util.cljc

@@ -474,7 +474,9 @@
 
 
 #?(:cljs
-   (def distinct-by medley/distinct-by))
+   (defn distinct-by
+     [f col]
+     (medley/distinct-by f (seq col))))
 
 #?(:cljs
    (defn distinct-by-last-wins