I have the following code
let c = 0
cy.get(selector).each(count => {
if (++c == count-1)
break
//somthing
})
Let's say we have n selected DOM objects, and I want to apply some function on only n-2 objects. Is it possible to do it in Cypress?