title: How do I check if all elements of an array are null?
body: <p>What's the best way to check for an array with all null values besides using Lodash, possibly with ES6?</p>
  
  <pre><code>var emp = [null, null, null];
  if (_.compact(emp).length == 0) {
    ...
  }
  </code></pre>