DEV Community

Discussion on: Can you simplify this code for the guy?

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

totally agree 😆
I took the other answer as start point only to figure out why the OP said it's incomplete, so i used a foreach for testing purposes and commented it "as is" 😅