Skip to content

Instantly share code, notes, and snippets.

@daoseng33
Created March 25, 2019 10:14
Show Gist options
  • Save daoseng33/e968266de67026ec232116153cd5c0df to your computer and use it in GitHub Desktop.
Save daoseng33/e968266de67026ec232116153cd5c0df to your computer and use it in GitHub Desktop.
var isLike = false
if isLike {
fetchDisLikeAPI()
} else {
fetchLikeAPI()
}
isLike = !isLike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment