swannodette / mori

ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript

Home Page:http://swannodette.github.io/mori

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make toJs work on mori structures inside of JS structures

dmitrig01 opened this issue · comments

Input:

m.toJs({ "a": m.vector(1, 2) })

Expected output:

{ "a": [ 1, 2 ] } // a JS array inside of a JS object

Actual output:

{ a: [ 1 2 ] } // a Mori vector inside of a JS object

Does this make sense?

👍 I'm also expecting from toJs to return only native datatypes.