(form->serializable form)
Converts the input to either a string or (if an error object) an array of data
Source
(defn
form->serializable
"Converts the input to either a string or (if an error object) an array of data"
[form]
(if
(instance? js/Error form)
(array
(or (some-> form .-cause .-message) (.-message form))
(.-fileName form)
(.-lineNumber form))
(pr-str form)))