Function Closing Brace Space

There should be a single blank line before the function closing brace.

Valid: A single blank line before the function closing brace.

function outer() <em>{

}</em>

Invalid: No blank line before the function closing brace.

function outer() <em>{}</em>
Closing brace of nested function must be on a new line.

Valid: Nested function closing brace is on a new line.

function outer() { function inner() <em>{ }</em>

}

Invalid: Nested function closing brace on the same line.

function outer() { function inner() <em>{}</em>

}
Closing brace of nested function must not be followed by a blank line.

Valid: No blank line before the closing brace of a nested function.

function outer() { function inner() <em>{ }</em>

}

Invalid: A single blank line before the closing brace of a nested function.

function outer() { function inner() <em>{

}</em>

}