🌈 搜索
📅  最后修改于: 2022-03-11 15:01:54.655000             🧑  作者: Mango
let squares = [1,2,3,4].map(function (val) { return val * val; }); // squares will be equal to [1, 4, 9, 16]