collections icon indicating copy to clipboard operation
collections copied to clipboard

Add unique() method

Open ahmedghanem00 opened this issue 1 year ago • 2 comments

Hi there,

I was in need to filter out the duplicate values from an ArrayCollection, but I couldn't find a method to do that. So I had to use array_unique($collection->toArray()) to get the job done.

Is there any reason to not add an unique() method to do such filtering ?

Thanks

ahmedghanem00 avatar May 16 '23 20:05 ahmedghanem00