re-frame/src/re_frame/utils.cljc

12 lines
202 B
Clojure

(ns re-frame.utils
(:require
[re-frame.loggers :refer [console]]))
(defn first-in-vector
[v]
(if (vector? v)
(first v)
(console :error "re-frame: expected a vector, but got: " v)))