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.
If the string does not match regexp return null
null || [] returns [];
Nice solution!
I was just wondering – how exactly does the || [] work in this?
If the string does not match it gets put into an empty array right?
Is this array accessible or is basically like a dumping ground for letters that do not match?
Cheers for the reply. The +() was kind of throwing me off.
Wow,that's so smart.
Would anyone be kind enough to explain what exactly is happening here?