Make toJs work on mori structures inside of JS structures
dmitrig01 opened this issue · comments
Dmitri G commented
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?
Ivan Kleshnin commented
👍 I'm also expecting from toJs
to return only native datatypes.