4 ms·
The part where you're abusing an old "array like" and the way Array.from works with it and uses the index argument in the mapper argument to force it into a ran
by inglor 11y ago
The part where you're abusing an old "array like" and the way Array.from works with it and uses the index argument in the mapper argument to force it into a range. How many people do you think understand what `Array.from({length: 5})` works?
- peferron 11y agoYour comment sounded like it only worked because of implementation details in the JS engines. That would have been a much bigger deal than just not liking the style. Out of curiosity, how would you do it yourself?