Files
babel/packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/nested-2/expected.js

26 lines
322 B
JavaScript

const test = {
foo: {
bar: {
baz: {
a: {
x: 1,
y: 2,
z: 3
}
}
}
}
};
const {
foo: {
bar: {
baz: {
a: {
x
}
}
}
}
} = test,
other = babelHelpers.objectWithoutProperties(test.foo.bar.baz.a, ["x"]);