Google interview question

In the following jQuery function what is the algorithm doing