I have written this code to filter a "books" array, depending on the author or genre have been given as a parameter:-
//This code works perfectly fi