title: How to check the type of es6 proxy in Javascript?
body: <p>I am working with ES6 Proxy. I have created a proxy of an array, now when i check the type of proxy it is giving me as <code>Object</code> type. </p>
  
  <p><strong>Question:</strong> </p>
  
  <p>How can i check if the proxy i have created was for array or object? </p>
  
  <p><strong>Example:</strong></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 arr = ['a', 'b', 'c'];
  
  const arrProxy = new Proxy(arr, {});
  
  alert(typeof(arrProxy));</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>UPDATE (SOLUTION):</strong>
  Instead of using <code>typeof</code>, we should use <code>Array.isArray</code></p>
  
  <pre class="lang-js prettyprint-override"><code>const arr = ['a', 'b', 'c'];
  
  const arrProxy = new Proxy(arr, {});
  
  alert(Array.isArray(arrProxy));
  </code></pre>