☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-destructuring
/
test
/
fixtures
/
destructuring
/
number-key-with-object-rest-spread
/
exec.js
☽
☼
packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/number-key-with-object-rest-spread/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
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" });