I enjoy coding, solving problems, playing games and watching anime. Basically, you will find me in front of a computer most of the time. Love to share experiences and learn from the experienced.
That is a good point, thank you for the feedback :) I will amend the article. Do you have a particular example of I could also add to show case the point?
That is a good point, thank you for the feedback :) I will amend the article. Do you have a particular example of I could also add to show case the point?
Nice. Check this out
The idea is that the return value of the callback is truthy or falsy
Yep. Using an identity function like that with
filter
will remove anything 'falsy' from the array:Also, you don't need the parentheses around the first
str
in your exampleSure. I wrote this and copied it from a linted editor, that's why.
I also think it is more readable with the parentheses
Thanks