title: Skip arguments in a JavaScript function
body: <p>I have a function like this:</p>
  
  <pre><code>function foo(a, b, c, d, e, f) {
  }
  </code></pre>
  
  <p>In order to call this function only with an <code>f</code> argument, I know I should do:</p>
  
  <pre><code>foo(undefined, undefined, undefined, undefined, undefined, theFValue);
  </code></pre>
  
  <p>Is there a less verbose way to do this?</p>
  
  <p><strong>Solutions</strong>:<br>
  I selected some proposed solutions (without using helper third functions)</p>
  
  <pre><code>// zero - ideal one, actually not possible(?!)
  foo(f: fValue);
  
  // one - asks a "strange" declaration
  var _ = undefined;
  foo(_, _, _, _, _, fValue);
  
  // two - asks the {} to be used instead of a 'natural' list of args
  //     - users should be aware about the internal structure of args obj
  //       so this option is not 'intellisense friendly'
  function foo(args){
      // do stuff with `args.a`, `args.b`, etc.
  }    
  foo({f: fValue});
  </code></pre>