Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (22 loc) · 607 Bytes

space-before-function-paren.md

File metadata and controls

25 lines (22 loc) · 607 Bytes

Combined with func-call-spacing, this helps distinguish at a glance between function declarations/expressions and function calls:

const functionExpression = function (...arguments) {
	// ...
}

const foo = {
	bar () {
		// ...
	}
}
///
const functionCallResult = funotion(...arguments)(
	// ...
)

if (condition) {
	doSomething()
	// ...
}

Related to keyword-spacing.