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's called a spread operator, you can use it to define "the rest" of arguments, like (a, b, ...rest) and that'll be an array of the additional arguments. You can call this as myFunc(a, b, c, d) and the rest argument will contain [c, d]. I hope this makes sense. :)
Could you explain what is doing ...names?
Nice one!
Perfect!
This solution uses a OR operator to evaluate whether the property (string or number) exists in the object ({string: "Zach", number: "Monica"}). If it does it returns the property value. If it doesn't, it returns 'the dog'. Does it make sense?