Closed jameshartig closed 1 year ago
The spread operator requires babel to include a lot of extra code: https://babeljs.io/docs/assumptions#iterableisarray
Similarly with TypeScript: https://github.com/microsoft/TypeScript/issues/8856 (Fixed in https://github.com/microsoft/TypeScript/pull/31166).
Array.from is simpler and reduces the amount of code generated when transpiling. This would save us 811 bytes after gzip.
The spread operator requires babel to include a lot of extra code: https://babeljs.io/docs/assumptions#iterableisarray
Similarly with TypeScript: https://github.com/microsoft/TypeScript/issues/8856 (Fixed in https://github.com/microsoft/TypeScript/pull/31166).
Array.from is simpler and reduces the amount of code generated when transpiling. This would save us 811 bytes after gzip.