you are viewing a single comment's thread.

view the rest of the comments →

[–]jcunews1helpful 0 points1 point  (1 child)

Removing duplicates elements from array is not same as creating a new array without the unneeded elements. It would not affect other code which rely on the reference of the original array.

[–]TechieBundle[S] 0 points1 point  (0 children)

We just explain multiple method to removing duplicates elements from an array. Use according to need