📜  es6 创建倍数数组 - Javascript 代码示例

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

代码示例1
let arr = [...new Array(parseInt(length)).keys()];
arr = Array.from(arr, item => item+1);
arr = Array.from(arr, item => item*parseInt(multiplication));