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.
It in fact isn't possible. The numbers are automatically converted into strings.
In fact I was caought up here too thinking the same thing, the answer is simple : it's about " Operator precedence "
you've been thinking of that expression like this :
return ( i+k > a.length ) || ( s.length >= a.slice(i,i+k).join('').length ? s : a.slice(i,i+k).join('') );
In fact it is interpreted like this
return ( i+k > a.length || s.length >= a.slice(i,i+k).join('').length ) ? s : a.slice(i,i+k).join('');
Because the || operator take precedence over the ? operator
I've been there..