DEV Community

Kevin Sullivan
Kevin Sullivan

Posted on

Initializing array with length

Straight to the point....

> Array.from({ length: 5 })
[ undefined, undefined, undefined, undefined, undefined ]
Enter fullscreen mode Exit fullscreen mode

What?!?

Yah....I know, right....

Top comments (0)