title: How to Filter an Array and get the entire data entry?
body: <p>I have,</p>
  <pre><code>[
    {
      _id: 60673d40ba14f617081bdf4d,
      ImageName: 'Flowers',
      ImagePath: './public/assets/img/1.jpg',
      Description: 'A cool Image',
      __v: 0
    },
    {
      _id: 60673e099d76ef16a8ec4588,
      ImageName: 'Water Bubble Colors',
      ImagePath: './public/assets/img/2.jpg',
      Description: 'Wallpapers',
      __v: 0
    },
    {
      _id: 60673e39f10c4a12a0f4ea31,
      ImageName: 'Egg Silhouette Wallpaper',
      ImagePath: './public/assets/img/3.jpg',
      Description: 'Wallpapers',
      __v: 0
    },
    {
      _id: 60673e4a15d9bb18a01312df,
      ImageName: 'Pencil BW ',
      ImagePath: './public/assets/img/4.jpg',
      Description: 'Wallpapers',
      __v: 0
    },
    {
      _id: 60673e6c6de9bb1bf8c65d25,
      ImageName: 'Water',
      ImagePath: './public/assets/img/5.jpg',
      Description: 'Wallpapers',
      __v: 0
    },
    {
      _id: 60673e8a8af58b1fb8b11596,
      ImageName: 'Dining Plate',
      ImagePath: './public/assets/img/6.jpg',
      Description: 'Wallpapers',
      __v: 0
    }
  ]
  </code></pre>
  <p>and <code>var id = req.params.id</code> which basically is <code>60673e8a8af58b1fb8b11596</code>.
  Now how can I filter the array with the <code>id</code> variable I have and get the entire Object which has the id? I want the entire object with _id,ImageName, ImagePath, __v and Description.</p>
  <p>I searched a lot,found <code>array.filter</code> method, but its so complexed and didnt help me and i got even more confused.</p>