title: Why array brackets are not being printed in the console?
body: <p>I have a code similar to this one, I'm trying to output an array to the console, but it's required for me (in my case) that the brackets of the array &quot; [] &quot; show up in the console</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>const x = (...c) =&gt; {
      const array = c.find((value) =&gt; {
          return true
      })
      let error = new Error()
      error = Object.assign(error, { message: `You have committed a crime! ${array}` })
      throw error.message
  }
  console.log(x([1, 2, 3]))</code></pre>
  </div>
  </div>
  </p>
  <p>Output:</p>
  <p><a href="https://i.stack.imgur.com/X8rTH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X8rTH.png" alt="output" /></a></p>
  <ul>
  <li><strong>I'm using nodeJS</strong>.</li>
  </ul>