Improve page data structure and adapt it to the backend representation.

This commit is contained in:
Andrey Antukh 2016-10-11 19:21:12 +02:00
parent 4fde0469c0
commit f05d6924a3
6 changed files with 126 additions and 130 deletions

View file

@ -90,6 +90,16 @@
(and (string? v)
(re-seq +uuid-re+ v)))
;; --- Interop
(defn jscoll->vec
"Convert array like js object into vector."
[v]
(-> (clj->js [])
(.-slice)
(.call v)
(js->clj)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Numbers Parsing
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;