<% let hasCheckedHorarios = checkedHorarios ? (checkedHorarios.length > 0 ? true: false) : false; %>
<% horarios.forEach(function(item) { %> <% if(services.length !== 1) { %> <% } %> <% }) %>
[Horarios disponibles para el <%=formatedDate%>] <% if(services.length == 1) { %> [<%=services[0].nombreServico%>] <% } %>
<% if(hasCheckedHorarios) { %> <% if(checkedHorarios.some(obj => obj.horario_id == item.id)){ %> <% } else { %>
<% } %> <% } else { %>
<% } %>