title: Using javascript map with a function that has two arguments
body: <p>I know that I can use <code>map</code> with a function of one variable in the following manner:</p>
  
  <pre><code>var squarefunc = function(x) {
      return x*x;
  };
  values = [1,2,3,4]
  values.map(squarefunc) // returns [1,4,9,16]
  </code></pre>
  
  <p>How do I use <code>map</code> with the following function:</p>
  
  <pre><code>var squarefuncwithadjustment = function(x, adjustment) {
      return (x*x + adjustment);
  }
  </code></pre>
  
  <p>where, I want to input value for argument <code>adjustment</code> manually when I call map, say <code>adjustment=2</code>, and have the value of <code>x</code> taken from the array <code>values</code>.</p>