Instead of using a traditional for loop, try this:
const arr = [...Array(4).keys()] // [0, 1, 2, 3]
For further actions, you may consider blocking this person and/or reporting abuse
Instead of using a traditional for loop, try this:
const arr = [...Array(4).keys()] // [0, 1, 2, 3]
For further actions, you may consider blocking this person and/or reporting abuse
Md. Taufiqur Rahman -
Syncloop -
Gayathri-github7 -
The Software House -
Top comments (0)