munge

functionsince v1.7.10Edit
(munge name)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn munge [name]
  (let [name' (munge-str (str name))
        name' (cond
                (identical? name' "..") "_DOT__DOT_"
                (js-reserved? name') (str name' "$")
                :else name')]
    (if (symbol? name)
      (symbol name')
      name')))