How to destructure object properties with key names that are invalid variable names? : <p>As object keys are strings they can contain any kind of characters and special characters. I recently stumbled upon an object which I receive from an API call. This object has '-' in it's key names.</p>

<pre><code>const object = {
   "key-with-dash": []
}
</code></pre>

<p>Destructuring does not work in this case because <code>key-with-dash</code> is not a valid variable name.</p>

<pre><code>const { key-with-dash } = object;
</code></pre>

<p>So one question came to my mind. How am I supposed to destructure the object in such cases? Is it even possible at all?</p>
