Skip to main content

instrument

macrov1.9

cljs.spec/instrument

(instrument [v])
Instruments the var at v, a var or symbol, to check specs registered with fdef. Wraps the fn at v to check :args spec, if it exist, throwing an ex-info with explain-data if a check fails. Idempotent.

No examples yet. Be the first to add one!