if I modify the example to call the function with smth like [1] and call JSON.stringify inside - I can see the parameter gets converted to {"0":1}. Same goes for typed arrays.
How can I pass arrays, specifically typedarrays? Or, where do I start to add this functionality?
The idea is to pass a typed array which the function can modify without creating a ton of new objects
Thanks!
if I modify the example to call the function with smth like
[1]and callJSON.stringifyinside - I can see the parameter gets converted to{"0":1}. Same goes for typed arrays.How can I pass arrays, specifically typedarrays? Or, where do I start to add this functionality?
The idea is to pass a typed array which the function can modify without creating a ton of new objects
Thanks!