Skip to content

Commit 0d89947

Browse files
committed
Fix code style
1 parent 76d56ce commit 0d89947

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Solutions/2-by-value.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
const inc = x => ++x;
3+
const inc = (x) => ++x;
44

55
module.exports = { inc };

Solutions/3-by-reference.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const inc = obj => {
3+
const inc = (obj) => {
44
if (typeof obj === 'object') {
55
obj.n++;
66
}

Solutions/4-count-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const countTypesInArray = arr => {
3+
const countTypesInArray = (arr) => {
44
const counters = {};
55
for (const element of arr) {
66
const type = typeof element;

0 commit comments

Comments
 (0)