Summary
This chapter was all about digging a little deeper into what CoffeeScript has to offer. We:
Learned how to use the existential operator to deal with null and undefined values
Learned how destructuring assignment lets us assign multiple values at once
Learned how to give function arguments default values
Learned how to receive and send multiple function arguments as arrays using splats
As we learned each of these concepts, we put them to use in our application. Along the way, we added some great new features to our pet store.
You may have noticed that our code base is growing larger, and sometime soon we'll be wanting a bit more organization. The next two chapters are all about that. We'll be looking at classes in CoffeeScript and how they can help us keep our code modular and understandable.