Thanks for your reply.
Could you details more the process you use? Why would you use findIndex?
I tried to use your method in my use case, but it doesn't remove all the values from the smaller list in the total one
I will edit my post to make it more clearer with the expected result
I have used findindex to find current index property value to match with passed property to make it unique
Doesn't findIndex returns the first value that match the provided testing function? In need all the elements that match the predicate, not only the first one.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.