Suppose i have this array in javascript
ar = ['C241C12A-45FD-40FF-B26E-B879107E584D||20',
'AB1BB99D-4396-415A-A5D8-1BEF3E0149CE||33',
'ADE54113-53D1-4F26-A01C-48EBE37E3CE8||85',
'DB500FD1-5988-4202-A4AA-727AC29AC67A||85',
'8A8EAB5A-E0D2-4AA8-96A0-42686FF5EB0C||10',
'50C29E8A-16C7-4FC2-A186-C3D65F23C627||200',
'70C79BBB-14C7-4F34-346B-CSSSDFVFZZZ7||200'
];
is there any way to get arrays like this
newarray1 = [
'ADE54113-53D1-4F26-A01C-48EBE37E3CE8||85',
'DB500FD1-5988-4202-A4AA-727AC29AC67A||85'
];
newarray2 = [
'50C29E8A-16C7-4FC2-A186-C3D65F23C627||200',
'70C79BBB-14C7-4F34-346B-CSSSDFVFZZZ7||200'
];
Duplicate values that comes after the pipe symbol,grab that value and form a new array based on that