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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
del
thx
Because 0 is a falsy value.
return l.filter(item => typeof(item) == 'number' ? item : false);
Hi. Why filter doesn't return 0?
in [0,1,2,3,4]
out [1,2,3,4]
thx for comment. i recently started to learn JS and i have many mistakes
return str1 === str2;
It's redundant to check if something is true then return true, else return false. What you're checking for is exactly what you're returning