How can I destructure object properties with key names that are invalid variable names? November 12, 2023 by Tarik const data = { "key-with-dash": ["BAZ"] } const {"key-with-dash": foo} = data; console.log("foo", foo);