❔ Somewhat advanced check for ids in foreach, remove duplicated
Hi!
Right now im doing somewhat of a "complex" (at least for me to understand) check of id's to remove, and wanna ask if i can do this code example simpler, or shorter, cuz it feels like i could, but cant think of how
Since i tried to combine
Doesnt give the same result
Thanks in advance
Right now im doing somewhat of a "complex" (at least for me to understand) check of id's to remove, and wanna ask if i can do this code example simpler, or shorter, cuz it feels like i could, but cant think of how
Since i tried to combine
Doesnt give the same result
Thanks in advance