Get duplicates from array

Certified Senior Developer

How to get the duplicates from an array:

i/p:{1,2,2,3,3}
o/p:{2,3}

  Discussion posts and replies are publicly visible

Parents Reply Children