Why is #TypeScript killing my code here? [...Array(2)].map(() => 'f'); is
converted to Array(2).slice().map(function () { return 'f'; });
2 replies
Because it's a 🐛 https://github.com/Microsoft/TypeScript/issues/8856
And the first is perfectly valid ES6, and will return ['f','f'], the TS result
will return [undefined, undefined]