Can I simplify multiple if - else statements?
<p>I have the following code in javascript?</p>

<pre><code>if ($(form).data('action') == "Edit") {
  xx
} else if ($(form).data('action') == "Create"){
  xy
} else if ($(form).data('action') == "Delete"){
  xz
}
</code></pre>

<p>Is it possible for me to simplify this and also have some default path?</p>
