I am working with a dynamically generated array that looks like this:
var myArray = ("0% { left:74px; top:202px; }" , "44% { left:427px; top:122px; }", "0% { font-size:11px; }", "55% { font-size:49px; }" );
Within the array, there are 2 entries that have the same starting value of 0%. I'm trying to figure out how to identify and combine these duplicate entries. Here's an example of what I would like to achieve:
from:
0% { left:74px; top:202px; },
0% { font-size:11px; },
to
0% { left:74px; top:202px; font-size:11px;},
Any suggestions on how to accomplish this would be greatly appreciated.
Note: I have also made sure to edit the code to ensure it is a valid array.