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 have just foo and !foo in the place where you execute it or check the condition.