DEV Community

Discussion on: Using Python range() in JavaScript

Collapse
 
guyariely profile image
Guy Ariely

hey luke thanks for reading the article!
The reason I chose to use iterators is to match Python range() structure and semantics. I was looking to build a function / type that will only produce an array after calling Array.from() on the returned structure, similar to python list().