You can just use return . ... This will send a return value of undefined to whatever called the function. ... Of course, you can specify a different ... ... <看更多>
I prefer the second style. Get invalid cases out of the way first, either simply exiting or raising exceptions as appropriate, put a blank line in there, ... ... <看更多>