Skip to content

通过数字生成升序数组

javascript
// Output => [0, 1, 2]
const arr = [...Array(3).keys()];

Views , Visitors
Released under the MIT License.