Got this type of string:
var myString = '23, 13, (#752, #141), $, ASD, (#113, #146)';
I need to split it to an array with comma as separator but also converts
(..) to an array.
This is the result I want:
[23, 13, ['#752', '#141'], '$', 'ASD', ['#113', '#146']];
I got huge data-sets so its very important to make it as fast as possible. What's the fastest way? Do some trick RegExp function or do it manually with finding indexes etc.?
Here's a jsbin: https://jsbin.com/cilakewecu/edit?js,console