Hi @andrew_DFN,
thanks for your talk! I was wondering how to access an array that is returned by a Motoko function in JavaScript?
1 Like
It is just native Javascript array, e.g. [1,2,3,4]
. You can see the corresponding JS types from ~/.cache/dfinity/versions/0.5.7/js-user-library/src/idl.d.ts
3 Likes