Hacker News new | ask | show | jobs
by phogster 1917 days ago
Never heard of a "from" loop before.
2 comments

Array.from lets you build an array from an iterable source (often used in conjunction with `new Set` to eliminate duplicates), or in this case, of a fixed length.