title: how to throw error for destructuring non-existent key
body: <p>So I'd like to destructure an object and have it throw an error if one of the keys didn't exist. I tried a <code>try catch</code> but it didn't work. And I'd like an alternative to just <code>if (variable === undefined)</code></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let obj = {test : "test"}
  
  try {
   let { test, asdf } = obj 
    console.log("worked")
  }
  catch (error) {
   console.error(error)
  }</code></pre>
  </div>
  </div>
  </p>