all files / src/vuex/ getters.js

100% Statements 8/8
100% Branches 4/4
100% Functions 3/3
100% Lines 4/4
1 branch Ignored     
1 2 3 4 5 6 7 8 9 10              
import _ from 'underscore'
 
export default {
  getLists: state => state.shoppinglists,
  getListById: (state, id) => {
    return _.findWhere(state.shoppinglists, { id: id })
  }
}