The current output of ```js [...a, ...b] ``` is ```js [...a, , ...b] ``` because flow parses it as ``` ArrayExpression(SpreadExpression, null, SpreadExpression) ``` This is a bug in the flow parser. Until it gets fixed, we can workaround it by deleting the `null` after a `SpreadExpression`.
3 lines
29 B
JavaScript
3 lines
29 B
JavaScript
[...a, ...b,];
|
|
[...a, ...b];
|