title: Using named parameters JavaScript (based on typescript)
body: <p>I have problems, when using named parameter in TypeScript, I know it is not supportetd the way I use it in TS.
  But how can I </p>
  
  <p>TypeScript:</p>
  
  <pre><code>SomeFunction(name1: boolean, name2: boolean, name3: boolean, name4: boolean) //will occur only 1 time, so the change should be in typescript
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>$(function () {
       ...SomeFunction({name1:false, name2:false, name3:false, name4:true}); //will occur 100 times    
  });
  </code></pre>
  
  <p>I was looking at(this did not work out):</p>
  
  <p><a href="https://stackoverflow.com/questions/11796093/named-parameters-in-javascript">Named parameters in javascript</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24304607/how-can-i-add-optional-named-parameters-to-a-typescript-function-parameter">How can I add optional named parameters to a TypeScript function parameter?</a></p>
  
  <p>What can I do in TypeScript, to use named parameters in JavaScript?</p>
  
  <p>What I wonder is, that VS2015 did not show a syntax error when using named parameter the way  I used it in TypeScript ... </p>
  
  <p>ps.: I use TS 2.1</p>