title: Curly brackets (braces) in Node.js 'require' statement
body: <p>I am trying to understand the difference between the two 'require' statements below.</p>
  <p>Specifically, what is the purpose of the <code>{ }</code>s wrapped around <code>ipcMain</code>?</p>
  <pre><code>const electron = require('electron')
  
  const {ipcMain} = require('electron')
  </code></pre>
  <p>They both appear to assign the contents of the <code>electron</code> module, but they obviously function differently.</p>
  <p>Can anyone shed some light?</p>