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.
The return statement(s) do the following:
This ensures
o[v]
is always an array before the next statement is processed.Now that we're sure
o[v]
is an array we can safely pusha
into it without any checks.This line is a more terse way of writing:
I'm a little confused by the return line. Can someone further explain? More explicitly why is it "o[v] = o[v]" and I don't understand the ", o". Thanks!
Fair point (:
Don't know if the description updated, but it at least returns a falsy value.
Doesn't this not handle the case of phoneNumber property missing and returning false in this case?