title: Multiple catch in javascript
body: <p>Is it possible to use multiple catch in J<code>S(ES5 or ES6)</code> like I describe below (it is only example):</p>
  
  <pre><code>try {
  ­­­­  // just an error
    throw 1; 
  }
  catch(e if e instanceof ReferenceError) {
  ­­­­  // here i would like to manage errors which is 'undefined' type
  }
  catch(e if typeof e === "string") {
    ­­­­// here i can manage all string exeptions
  }
  // and so on and so on
  catch(e) {
    ­­­­// and finally here i can manage another exeptions
  }
  finally {
  ­­­­  // and a simple finally block
  }
  </code></pre>
  
  <p>This is the same as we have in <code>C#</code> or in a <code>Java</code>.</p>
  
  <p>Thanks in advance!</p>