mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 06:18:00 -05:00
added newlines after each function
This commit is contained in:
@@ -640,9 +640,11 @@ Other Style Guides
|
||||
function f1(a) {
|
||||
a = 1;
|
||||
}
|
||||
|
||||
function f2(a) {
|
||||
if (!a) { a = 1; }
|
||||
}
|
||||
|
||||
function f3(obj) {
|
||||
obj.key = 1;
|
||||
};
|
||||
@@ -651,8 +653,10 @@ Other Style Guides
|
||||
function f4(a) {
|
||||
const b = a || 1;
|
||||
}
|
||||
|
||||
function f5(a = 1) {
|
||||
}
|
||||
|
||||
function f6(obj) {
|
||||
const key = Object.prototype.hasOwnProperty.call(obj, 'key') ? obj.key : 1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user