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.
woah
As the instructions said that name is a property of the object 'Players', Also we can't target the name of the player unless we use the Key Value which is the name: the structure is like that :
Players[{name: "a"}, {name: "b"} ... {name: "z}];
out of the box type of thinking, my admiration!
hell no! this func called sortByLength.
If you mean like callback function - yes it is anonymous
This solution always returns a new object
Every player (element in players array) is constructed into an object:
.name
allows you to access and return the property value. If it would not be there you would return the whole object. For examplePlayer { name: 'a' }
how is this best practice?
i can't understand why are you using name
what the magic
cool)))
Readable, close to what I did. I like it.
then this solution is not correct anymore
It's a design fault on the test cases.
does it anonymous function?
Well it was not one of the requirements to remove anything. There should be test cases with more than one
?
.Loading more items...