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.
Actually, having them as independent functions is not so important, it depends the scenario. I'd say it's about scope, if it's a useful function normally you'd want it outside, to be reused.
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
This comment is hidden because it contains spoiler information about the solution
.
.
black magic!
.
.
.
. lol
This comment is hidden because it contains spoiler information about the solution
A faster approach timed me out, so I guess you cannot get away with this anymore...
"If such an element is found, the every method immediately returns false. "
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every
Loading more items...