To avoid iterations over a list of objects:

const numbers = [1, 2, 3, 4, 5];
const double = (x) => x * 2;
const doubledNumbers = numbers.map(double);
console.log(doubledNumbers);
[ 2, 4, 6, 8, 10 ]

Sources: https://www.linkedin.com/learning/learning-functional-programming-with-javascript-es6-plus