If you are referring to the concept of mapping (exchanging one value for another), then you can use Array#map
:
var new_array = array.map(function(value) {
return /*...your calculation on value here...*/;
});
This function will iterate through each value in the array, apply your specified calculation, and create a new array based on the returned values. (Sorry, I couldn't understand how 3452 turns into 12 or 1234 into 48, etc.)
For example, to double each value in an array:
var array = [1, 2, 3, 4];
var new_array = array.map(function(value) {
return value * 2;
});
console.log(new_array);
If you mean filtering values within a specific range, then you would use Array#filter
:
var new_array = array.filter(function(value) {
return value >= 10 && value <= 90;
});
This function will evaluate each value against your conditions and include only those that satisfy them in the new array. Here, "between 10 and 90" includes both 10 and 90.
For instance:
var array = [3452, 1234, 200, 783, 77];
var new_array = array.filter(function(value) {
return value >= 10 && value <= 90;
});
console.log(new_array);
In modern versions like ES2015 (or "ES6") and beyond, you can write these operations more succinctly:
let new_array = array.map(value => /*...your calculation on value...*/);
Or
let new_array = array.filter(value => value >= 10 && value <= 90);