Files
babel/packages/babel-plugin-transform-spread/test/fixtures/spread/nested-array-with-hole/exec.js
Nicolò Ribaudo e914d1219f 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 <phapp1988@gmail.com>
2021-06-10 12:34:42 +02:00

3 lines
61 B
JavaScript

let arr = ['a', ...['b',,'c']];
expect(2 in arr).toBe(true);