getters.js 139 B

1234567
  1. export const count = state => state.count
  2. export const recentHistory = state => {
  3. return state.history
  4. .slice(-5)
  5. .join(', ')
  6. }