title: Javascript/Ember - Toggle Boolean Value of Variable
body: <p>I know that there is the .set() method to set a boolean to true or false but I want to know if there a method like .set() except it Toggles the value of a boolean.</p>
  
  <p>In this case the boolean isEditing is being set to 'true'.</p>
  
  <pre><code>isEditing:false,
  actions: {
    edit: function(category){
      category.set('isEditing', true);
      console.log(this.get('isEditing'))
    },
  }
  </code></pre>
  
  <p>Here is the html </p>
  
  <pre><code>{{#if isEditing}}
    &lt;div class="category-text"&gt; 
      {{view Ember.TextField valueBinding=name action="turnOffEditMode"}}
    &lt;/div&gt;
  {{else}}
    &lt;div class="category-text"&gt; 
      {{#linkTo 'category' this}}
        {{name}}
      {{/linkTo}}
    &lt;/div&gt;
  {{/if}}  
  </code></pre>