title: Ternary to return undefined?
body: <p>I want to include a property on an object only in the event that a variable is defined. I don't want the property at all otherwise. I don't even want it to equal a blank string. I'm thinking something like this:</p>
  
  <pre><code>someFunc({
      bing: "bing",
      bang: (myVar) ? myVar : undefined,
      boom: "boom"
      }, "yay");
  </code></pre>
  
  <p>In the event that <code>myVar</code> is undefined, I want this to result in the same thing as the below:</p>
  
  <pre><code>someFunc({
      bing: "bing",
      boom: "boom"
      }, "yay");
  </code></pre>
  
  <p>Am I doing it right?</p>