Welcome to the live interview! We'll be taking this problem set and working on a few additional problems.
You want to know which items are of the same type. Create a function called findItems
that takes the array of items and a type of item as parameters and returns an array of item names.
findItems(items, "book") //=> [ 'Effective Programming Habits', 'Finding Your Center' ]
Add the following feature to your Find Items function:
If the type of item to find does not show up in the list of items, return a message that says, No items found of that type. Please search for a different item.