Y
Hacker News
new
|
ask
|
show
|
jobs
by
phogster
1917 days ago
Never heard of a "from" loop before.
2 comments
franky47
1917 days ago
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.
link
klyrs
1917 days ago
Not JavaScript, but...
https://en.m.wikipedia.org/wiki/COMEFROM
link