cljs.spec.alpha/valid?

functionpreviously cljs.spec/valid? clojure.spec.alpha/valid?Edit
(valid? spec x)
(valid? spec x form)

Source docstring:
Helper function that returns true when x is valid for spec.
Source code @ clojurescript:src/main/cljs/cljs/spec/alpha.cljs
(defn valid?
  ([spec x]
   (let [spec (specize spec)]
     (not (invalid? (conform* spec x)))))
  ([spec x form]
   (let [spec (specize spec form)]
     (not (invalid? (conform* spec x))))))