diff --git a/frontend/uxbox/util/data.cljs b/frontend/uxbox/util/data.cljs index fb6443da5..7b4d474c2 100644 --- a/frontend/uxbox/util/data.cljs +++ b/frontend/uxbox/util/data.cljs @@ -22,6 +22,13 @@ [data] (into {} (remove (comp nil? second) data))) +(defn without-keys + "Return a map without the keys provided + in the `keys` parameter." + [data keys] + (persistent! + (reduce #(dissoc! %1 %2) (transient data) keys))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Numbers Parsing ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;