Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The best way! I keep forgetting that I don't need to explicity write true and false because the comparison operator always does that automatically for me.
lgfm
Arrow functions are not IIFE. This is just their syntax. If they are one line expressions they don't need return. But if they contain several lines of code, then they need return statement and curly braces around code block.
Does this work without the return statement because arrow functions are 'immediately invoked functions?'
This comment is hidden because it contains spoiler information about the solution
I think this is the best way to do it, readable and effecient.
Well done!
we can use shorter variable names
Great!
No semicolon ftw 💪