cljs.spec/nilable

MOVED, please see cljs.spec.alpha/nilable
macroremoved v1.9.542added v1.9.14Edit
(nilable pred)

Source docstring:
returns a spec that accepts nil and values satisfiying pred
Source code @ clojurescript:src/main/cljs/cljs/spec.cljc
(defmacro nilable
  [pred]
  (let [pf (res &env pred)]
    `(nilable-impl '~pf ~pred nil)))