Files

10 lines
128 B
JavaScript

const example = () => {
const input = {};
const foo = 'foo';
({
[`${foo}_bar`]: country,
...rest
} = input);
}