How can I flip the value of a boolean variable in javascript, without having to include the variable name twice? So
foobarthings[foothing][barthing] = !foobarthi
You can do this:
foo ^= 1
But this really switches foo between 0 and 1, not true and false.