'Some' method
I recently learned about a new array method called some method that i used in my project.This is the line of code:
if (!myReadingList.some(item => item.id === book.id))
So this line will check if the book is already in My Reading List array.
It u...
generalprogramming.hashnode.dev1 min read