piotr a64bf63639 [proposal-object-rest-spread] fix templateLiteral in extractNormalizedKeys (#9628)
Added additional check in extractNormalizedKeys function to handle templates differently than string.
2019-03-13 21:39:50 +01:00

8 lines
208 B
JavaScript

const input = {};
const {
given_name: givenName,
'last_name': lastName,
[`country`]: country
} = input,
rest = babelHelpers.objectWithoutProperties(input, ["given_name", "last_name", `country`]);