I want to do some Calculation inside array, I want to push back to array after iteration.
let dataValue = [90, 150, 180, 200, 230, 270]
dataValue.map((data) => {
let ValueAs = angleToVaue(data); //calculations I do I get some output like this example: 1000, 3500, 7000, 6000
//I want to put back to array
let arraValue =[];
arraValue.push(...ValueAs);
console.log(...ValueAs); // error: valueAs is not iterable
});