I have the following dynamically generated arrays:
,<div id="layer0" style="left: 470px; top: 286px;">Some Text</div>
,<div id="layer0" style="font-size: 68px; left: 70px; top: 286px; ">SomeText</div>
,<div id="layer1" style="font-size: 18px; left: 60px; top: 286px; ">SomeText</div>
,<div id="layer2" style="font-size: 18px; left: 50px; top: 286px; ">SomeText</div>
The first 2 entries are not exactly duplicates but have the same id="layer0". The second one is different because it has a CSS font-size propriety.
How can I remove the first any from this array that has a duplicate id but may differ in the exact form?
The arrays are combined together trough:
var allcode = $.merge([oldarray],[newarray])
Where in oldarray are some duplicates I need to get rid of.
Thank you.