DEV Community

Discussion on: Daily Challenge #194 - Spread Number

Collapse
 
sabbin profile image
Sabin Pandelovitch

Simple JS

const spreadNumber = nr => Array.from({ length: nr }, (i, n) => n + 1);