title: Ignore or remove object with null in reduce
body: <p>I have the following in my js code:</p>
  
  <pre><code>// Format the links 
  const newLinks = Object.keys(this.props.mission.links).reduce((array, key) =&gt; {
    return [...array, {url: this.props.mission.links[key], name:key}]
  }, []);
  </code></pre>
  
  <p>which creates my object like so:</p>
  
  <pre><code>{ url: "https://i.imgur.com/03gonKW.png", name: "mission_patch" }
  </code></pre>
  
  <p>but there are cases where the url is null how can I ignore that so it's not created in the object meaning if the url is null it should skip it.  </p>