Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Last active March 30, 2017 11:56
Show Gist options
  • Save destroytoday/d1829bb0cee61692d185861b89faecac to your computer and use it in GitHub Desktop.
Save destroytoday/d1829bb0cee61692d185861b89faecac to your computer and use it in GitHub Desktop.
import startOfDay from 'date-fns/start_of_day'
const getters = {
today (state) {
return startOfDay(state.now)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment