Antra interview question

What does this function do? (Javascript)