For a very simple range in ES6: let range = n => Array.from(Array(n).keys()). From bigOmega's comment, this can be shortened using Spread ...
確定! 回上一頁