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.
and I saw it this morning in just one of my attempts
good
and there was me thinking I was clever using array.some()
using the initial value parameter for the reduce method is an elegant way of handling the empty array scenarios. Something new I've learn't today, thanks.
yup, still can't make sense of it after understanding the solutions.
Javascript does not guarantee object property order so I don't think this is a reliable solution.
See https://stackoverflow.com/a/5525820/2964461
I don't understand how this solution keeps the right order of the sentences. Could anyone explain it to me, please? Thanks
This comment is hidden because it contains spoiler information about the solution
aww Set!
I'm not sure what the OP was using but I am also seeing this in Javascript
This comment is hidden because it contains spoiler information about the solution
that means if there is no match
(which will result in null)
return empty array.
yes)
in short, that's where all the awesome is.
This comment is hidden because it contains spoiler information about the solution
Loading more items...