@reiddraper's simple-check, made Clojure/ClojureScript-portable