mori icon indicating copy to clipboard operation
mori copied to clipboard

Make toJs work on mori structures inside of JS structures

Open dmitrig01 opened this issue 9 years ago • 1 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?

dmitrig01 avatar Apr 28 '15 21:04 dmitrig01

:+1: I'm also expecting from toJs to return only native datatypes.

ivan-kleshnin avatar Apr 29 '15 09:04 ivan-kleshnin