26 lines
322 B
JavaScript
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"]);
|