Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phogster
· 5y ago · 0 comments
Never heard of a "from" loop before.
Comments
[–]
franky47
5y 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.
[–]
klyrs
5y ago
Not JavaScript, but...
https://en.m.wikipedia.org/wiki/COMEFROM