title: Conditionally hiding a segment of json in javascript code
body: <p>I want to hide the destructiveText property conditionally, is that possible? So, say there is a variable called <code>showDelete</code>. I want to show destructiveText to show only when <code>showDelete = true</code>. Is it possible to conditionally exclude it from the json?</p>
  
  <pre><code>  $ionicActionSheet.show({
        buttons: [
          { text: 'Share' },
          { text: 'Report'},
        ],
        destructiveText: 'Delete', //I want to hide this delete element when showDelete is false
        titleText: 'Actions',
        cancelText: 'Cancel',
        cancel: function() {
              // add cancel code..
        },
        ...
  </code></pre>