Filtering an object JS
let -> const
Use the Array methods (filter, every)
Use object destructuring
Use object short-hand
Use a method for the null check so you don't have to write it for every property


if (!error &amp;&amp; response.statusCode == 200) {
  const data = JSON.parse(body);

  const filtered = data.articles
    .filter(({ title, publishedAt, urlToImage, description, url }) =&gt;
      [title, publishedAt, urlToImage, description, url].every(
        prop =&gt; prop !== null
      )
    )
    .map(
      ({
        title,
        publishedAt: date,
        urlToImage: image,
        description,
        url: link
      }) =&gt; ({
        title,
        date,
        image,
        description,
        link
      })
    );

  res.render("index", { filtered });
}


Update: filtered first for lower memory consumption as by @FreezePhoenix suggestion.