🌈 搜索
📅  最后修改于: 2022-03-11 14:58:49.256000             🧑  作者: Mango
function modifyArray(nums) { return nums.map(n => n = (n%2==0) ? n*2: n*3); }