I agree it doesn't make sense to use filter for this, I was just pointing out it was perfectly possible despite what the OP said.
Also, I love writing code like this - code that challenges and exercises the grey matter. It's like code poetry. Sometimes not the best plan in production though 😋
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I agree it doesn't make sense to use
filter
for this, I was just pointing out it was perfectly possible despite what the OP said.Also, I love writing code like this - code that challenges and exercises the grey matter. It's like code poetry. Sometimes not the best plan in production though 😋