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.
dont need use return if function wrote in 1 line
This comment is hidden because it contains spoiler information about the solution
You should not mix the types... Even in the function definition you've "str" which is a string as the first parameter.
arrow functions :)should have thought of that cool
Nicely done. Arrow fuctions are ideal for one-liners.🔥
It's excellent. Less code and clever solution
This comment is hidden because it contains spoiler information about the solution
This is a thing?
Your post contained the whole solution, that's why it was a spoiler. Posts here are visible in the homepage if you don't flag them.
Ok, sorry for spoiler. I was think this issimple question, not spoiler.
Thank you for the answer!
Please use spoiler flag next time, and yes it's ES6 syntax.
This comment is hidden because it contains spoiler information about the solution