📜  JavaScript 映射函数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.050000             🧑  作者: Mango

代码示例6
const myAwesomeArray = [5, 4, 3, 2, 1]

myAwesomeArray.map(x => x * x)

// >>>>>>>>>>>>>>>>> Output: [25, 16, 9, 4, 1]