Explaining what a return in a function in WebStorm