Skip to content

Instantly share code, notes, and snippets.

@chewtoys
Created July 18, 2018 22:24
Show Gist options
  • Save chewtoys/3debc3bf110b3f339793b6ffae99cd0c to your computer and use it in GitHub Desktop.
Save chewtoys/3debc3bf110b3f339793b6ffae99cd0c to your computer and use it in GitHub Desktop.
removeSubscription: (state, channel)
removeSubscription: (state, channel) => {
const index = state.subscription.findIndex((obj) => channel.id === obj.id)
state.subscription.splice(index, 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment