function | previously cljs.spec/conform | clojure.spec.alpha/conform | Edit |
(conform spec x)
Given a spec and a value, returns :cljs.spec.alpha/invalid if value does not match spec, else the (possibly destructured) value.
(defn conform
[spec x]
(conform* (specize spec) x))