How to implement this code? How to make such functions? (this code cannot be changed)
- friends - an array of objects
- select, filterIn - functions that result in the work on the friends collection
Here's how friends put in the select and filterIn functions
var bestFriends = lib.query( friends, lib.select('name', 'gender', 'email'), lib.filterIn('favoriteFruit', ['Яблоко', 'Картофель']) );