title: Problem with filter method using dataset attribute
body: <p>my project does the following:
  1/create a Book constructor function
  2/ make instances and push them to an array
  3/ map through the array and display items dynamically
  4/ remove a certain array item upon clicking a button , yet when i  filter the array using data attribute nothing changes and the array stays the same and i can't find a solution please help!
  <a href="https://i.stack.imgur.com/ZNr5x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNr5x.png" alt="sample of my code" /></a></p>