MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / findBook

Function findBook

assets/js/libraryapp.js:71–76  ·  view source on GitHub ↗
(title,author)

Source from the content-addressed store, hash-verified

69
70//finding a book from myLibrary
71const findBook = (title,author) => {
72 let books = myLibrary.filter((book) => {
73 return book.title === title && book.author === author;
74 });
75 return books;
76}
77//To save data to Local Storage
78const saveLocal = () => {
79 localStorage.setItem("myLibrary", JSON.stringify(myLibrary));

Callers 1

libraryapp.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected