function checkStorage() {
  if (localStorage.getItem("myLibrary")) {
    const storageLibrary = JSON.parse(localStorage.getItem("myLibrary"));
    myLibrary = storageLibrary;
    displayShelf();
    displayStatistics();
  } else {
    displayShelf();
    displayStatistics();
  }
}
// function that checks localStorage for myLibrary array
function that checks localStorage for myLibrary array
function that checks localStorage for myLibrary array
function checkStorage() {
  if (localStorage.getItem("myLibrary")) {
    const storageLibrary = JSON.parse(localStorage.getItem("myLibrary"));
    myLibrary = storageLibrary;
    displayShelf();
    displayStatistics();
  } else {
    displayShelf();
    displayStatistics();
  }
}
function checkStorage ( ) { if ( localStorage . getItem ( "myLibrary" ) ) { const storageLibrary = JSON . parse ( localStorage . getItem ( "myLibrary" ) ) ; myLibrary = storageLibrary ; displayShelf ( ) ; displayStatistics ( ) ; } else { displayShelf ( ) ; displayStatistics ( ) ; } }
function that checks localStorage for myLibrary array
function that checks localStorage for myLibrary array