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 cheat from chatGPT !!
or super clever
Correct!
Then it's basicaly a circle so whatever :-)
will be released in v2.
I guess it doesn't make an error when you access the arr[i+1] when i = arr.length-1. It shoud say try to access undefined.
Check this one as well;
https://www.codewars.com/kata/reviews/5bbb8890484fcd36fb0020cc/groups/5bbcf8a3b6dfbb59fc0028bb
and this possible cuz a coersion
Well Done!
Please explain
that's where cheating stuff doesn't work...
good job !
This comment is hidden because it contains spoiler information about the solution
I think you can do without var newArr = [].concat(...arr)