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.
for this reason I just filtered out all strings instead of explicitly shooting for numbers. It can be confusing with "number" & "interger". Some pretty cool one liners on here too.
This is not a kata suggestion, you should discuss your solution on Solutions, not here. Read this please: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#post-discourse
This comment is hidden because it contains spoiler information about the solution
Your function only gets non-negative integers and strings, there is no need to validate that.
Your solution is good, but it seems incomplete. In my understanding, it was missing to validate 'if it is a positive integer'. You just filtered out the 'integers'
As the task is written in English, and my English is not the best, it was a little complicated to understand what was asked for, but after I understood it, it was really cool.