we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "ejs 2f javascript check if array 2fobject exists and is not empty"
Paul
05 Jul 2019
1<% if(typeof papers == 'object' && papers.length > 0){ %>
2  // whatever you want to do with 'papers' array
3  <% } %>