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.
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
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
For non-english speakers, it's just a bunch of latin letters.
It's cool to read programs as plain text, though.
poetic, though
read the last line, thats just sad lol
I always forget to inline and return the index I want all together. This makes it much cleaner. 👍
This shortcut is often referred to as an "immediate array access" or "anonymous array declaration with immediate access". It's a concise way to define an array inline and immediately access a specific element from it without assigning it to a variable first. It's commonly used in situations where a temporary array is needed for a single operation.
What is this kind of shortcut?
what does the [...this].eqAll() mean? if someone could break this down on what is going on that would be great! thanks in advance.
I had thought a workaround regarding turning the array into a string, apply the reverse on it and then turn it back into an array.
But since this exists on PHP, no real need. Just for the fun of tinkering around with it.
In the task it wasn't said explicitly about the case if we are given ['a', 'b'] array, I would think that the function should return 'c', but still this solution could be easily adapted for that case also. Really elegant, wp!
Loading more items...