Answers for "ejs / javascript check if array/object exists and is not empty"

1

ejs / javascript check if array/object exists and is not empty

<% if(typeof papers == 'object' && papers.length > 0){ %>
  // whatever you want to do with 'papers' array
  <% } %>
Posted by: Guest on December-08-2020

Code answers related to "ejs / javascript check if array/object exists and is not empty"

Code answers related to "Javascript"

Browse Popular Code Answers by Language