Yes, that’s a very good point. In the tutorial, I wanted to focus on the operators and didn’t use toLowerCase because I know that the more complexity we add, the more confusing it can get. But your suggestion is definitely something that we should always do in a production app, that’s for sure.

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com