title: Is there a shortcut to create padded array in JavaScript?
body: <p>I have this javascript:</p>
  
  <pre><code>function padded_array(k, value){
      var a = [];
      a[k] = value;
      return a;
  }
  
  padded_array(3, "hello"); //=&gt; [undefined, undefined, undefined, 'hello']
  </code></pre>
  
  <p>Is it possible to shorten the code in the function body?</p>