<% items.forEach(function(it, i){ %>
  1. <% if (i === items.length - 1) { %><%= it.nombre %><% } else { %><%= it.nombre %><% } %>
  2. <% }) %>