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) :
var divisor = 16;
var array = [{"x":0,"y":16},{"x":16,"y":32},{"x":32,"y":48}];
Expected Result:
[{"x":0,"y":1},{"x":1,"y":2},{"x":2,"y":3}];
Any ideas ?