mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
11 lines
219 B
JavaScript
11 lines
219 B
JavaScript
const example = () => {
|
|
const input = {};
|
|
const foo = 'foo';
|
|
var _input = input;
|
|
({
|
|
[`${foo}_bar`]: country
|
|
} = _input);
|
|
rest = babelHelpers.objectWithoutProperties(_input, [`${foo}_bar`]);
|
|
_input;
|
|
};
|