title: How can I use map and filter together to remove null values in javascript
body: <pre><code>columnValueList(val) {
    return this.beacons.map((d) =&gt; d[val].name);
  },
  </code></pre>
  <p>this is my function, is workingperfectly but sometimes i might get the name null. How can i filter the null value and map it?? I am getting center in val. I might get d[val].name null and trying tol remove the null from here and map it</p>
  <p>My <code>this.beacons</code> structure:
  <img src="https://i.stack.imgur.com/kjYrM.png" alt="xxx" /></p>