How can I use the .invoke() command in Cypress?

Can someone please explain how to use the .invoke() command in Cypress?