SHARE
TWEET

Untitled

a guest Feb 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mutations: {
  2.     toggleAvailability(state, book) {
  3.       const index = state.books.findIndex(b => b.id === book.id);
  4.       state.books[index].available = !state.books[index].available;
  5.     }
  6.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top