Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space between function name and parenthesis #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove space between function name and parenthesis #52

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 7, 2018

This is the most common approach, as demonstrated below:
http://crockford.com/javascript/code.html
https://google.github.io/styleguide/jsguide.html#features-functions
https://contribute.jquery.org/style-guide/js/#good-examples
https://github.com/felixge/node-style-guide#write-small-functions
https://github.com/airbnb/javascript#functions

Whilst not directly referenced in 5/6 (apart from Crockford's), the approach is applied regardless. This is also how Atom approaches functions by default (demonstrated in their "fun" snippet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants