Files
6c003523d9 Correctly transform spreads of arrays with holes (#13439)
* Correctly transform spreads of arrays with holes

* Use `arrayWithoutHoles` helper

* Add exec test

* Update for Babel 8

Co-authored-by: phapp88 <[email protected]>
2021-06-10 12:34:42 +02:00

3 lines
120 B
JavaScript

var a = babelHelpers.arrayWithoutHoles(['a',, 'b']);
var b = ['a'].concat(babelHelpers.arrayWithoutHoles(['b',, 'c']));