title: Javascript Conditional Logic as function parameter
body: <p>Can I have a Javascript code as below i.e. method attribute is based on the result of condition</p>
  
  <pre><code>self.renderViewContent(typeof partnerId !== "undefined" ? "myText1" : "myText2", view, {
      myAttr1: myModel.get("attr").toJSON()
  }); 
  </code></pre>
  
  <p>Just to add, my first parameter is a string.</p>