How can I return the exact ID from 2 coincidence indexOf() result?
I am creating a shallow copy of an array that is obtained through activatedRoute to use the IDs found in each object of that array. That shallow copy is being created trought filter(). Here is a code example: