Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created October 7, 2018 16:58
Show Gist options
  • Save yunustek/184ad90340ebf69eb38b3a50fc5dd25b to your computer and use it in GitHub Desktop.
Save yunustek/184ad90340ebf69eb38b3a50fc5dd25b to your computer and use it in GitHub Desktop.
Boolean Toggling
var bools = [true, false]
bools[0].toggle()
//bools == [false, false]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment