Created
July 18, 2018 22:24
-
-
Save chewtoys/3debc3bf110b3f339793b6ffae99cd0c to your computer and use it in GitHub Desktop.
removeSubscription: (state, channel)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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