cljs.pprint/char-code

functionsince v0.0-3255Edit
(char-code c)

Source docstring:
Convert char to int
Source code @ clojurescript:src/main/cljs/cljs/pprint.cljs
(defn char-code
  [c]
  (cond
    (number? c) c
    (and (string? c) (== (.-length c) 1)) (.charCodeAt c 0)
    :else (throw (js/Error. "Argument to char must be a character or number"))))