How do you divide each number in an array by a variable in javascript?
<p>I need a simple way to divide all the numbers (contained in objects) in an array by a variable in javascript (no jquery or other libraries) :</p>

<pre><code>var divisor = 16;
var array = [{"x":0,"y":16},{"x":16,"y":32},{"x":32,"y":48}];
</code></pre>

<p>Expected Result:</p>

<pre><code>[{"x":0,"y":1},{"x":1,"y":2},{"x":2,"y":3}];
</code></pre>

<p>Any ideas ?</p>
