📅  最后修改于: 2022-03-11 15:02:34.896000             🧑  作者: Mango
let numbers = [1, 2, 3, 4, 5];
let doubles = numbers.map(number => number * 2)
console.log(doubles)
// --> [ 2, 4, 6, 8, 10 ]