Debian Codegraph @

packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/number-key-with-object-rest-spread/exec.js

raw
1 const foo = {
2 1: "a",
3 2: "b",
4 3: "c",
5 };
6
7 const { [1]: bar, ...rest } = foo;
8
9 expect(bar).toBe("a");
10 expect(rest).toEqual({ 2: "b", 3: "c" });