I have the following string
output_string = \"[10, 10, [1,2,3,4,5], [10,20,30,40,50]]\"
Then I JSON.parse it
JSON.parse
m
You can achieve that by doing this some_javascript_function(...my_args)
some_javascript_function(...my_args)
This is called spread operation (as unpacking is in python). view docs here https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Spread_operator
spread
unpacking