How can i split this string format to array for in javascript? : <p><p>Dear all,
Currently am trying to split this string format: <code>x:10/08/2018,10/08/2018,10/08/2018~y:10,20,12</code> to array format like this:<p></p>

<pre>

    [
        { x:10/08/2018, y: 10 },
        { x:10/08/2018, y: 20 },
        { x:10/08/2018, y: 12 }
    ]

</pre>

<p>Who have experience with this split by using javascript could you please tell me now. Thanks in advance.</p>
