Add "allowArrayLike" opt to destructuring and spread transforms (#11265)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
var o = { 0: "a", 1: "b", 2: "c", length: 2 };
|
||||
|
||||
var [first, ...rest] = o;
|
||||
|
||||
expect(first).toBe("a");
|
||||
expect(rest).toEqual(["b"]);
|
||||
Reference in New Issue
Block a user