3 ms·
Never heard of a "from" loop before.
by phogster 6y ago
Never heard of a "from" loop before.
- franky47 6y agoArray.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.
- deleted 6y ago[deleted]
- klyrs 6y agoNot JavaScript, but... https://en.m.wikipedia.org/wiki/COMEFROM https://en.m.wikipedia.org/wiki/COMEFROM