How to transform a string of maps coordinates into an array javascript? : <p>I am drawing trails on a map and the coordinates of the trail are saved as string in a json file in the following format:
(43.886758784865066, 24.226741790771484),(43.90271630763887, 24.234981536865234)</p>

<p>I need to get these values and add them to an array:
coordinates= [43.886758784865066, 24.226741790771484,43.90271630763887, 24.234981536865234];</p>

<p>So how can I do this transition?</p>
