I personally think that is best use do filter and includes since these are functions that can (and mostlikely will) be otmized by the interpreter/compiler.
What you did is still valid tho, but is better to use Set instead of creating a new array with the element/boolean formant
lmao nice
Cool!
Today I learned about Array.includes... Very elegant!
This comment is hidden because it contains spoiler information about the solution
best
This comment is hidden because it contains spoiler information about the solution
good
This comment is hidden because it contains spoiler information about the solution
did the same, and feelt dumb after seeing this variation hahaha
Ohhhhh, really goood
Very smart lol
lol. makes sense.
I personally think that is best use do filter and includes since these are functions that can (and mostlikely will) be otmized by the interpreter/compiler.
What you did is still valid tho, but is better to use Set instead of creating a new array with the element/boolean formant
me pude ahorrar muchas lineas con esta solución
Nice!
Loading more items...