Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

Test with Jest

Get access to this course, 17 others, and future Vue.js courses!

Start Learning

Already got an account? Log in

The Find Method

In this lesson, we'll continue working on our library in a test-driven fashion. We'll implement the find method, a method that allows us to search for existing records.

Along the way, we'll find the need for a more sophisticated architecture when it comes to the record method.

Remember to return a copy of the record, instead of the actual record so it cannot be altered outside the Model class.