Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Apr 1, 2021
1 parent 76d56ce commit 0d89947
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Solutions/2-by-value.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

const inc = x => ++x;
const inc = (x) => ++x;

module.exports = { inc };
2 changes: 1 addition & 1 deletion Solutions/3-by-reference.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const inc = obj => {
const inc = (obj) => {
if (typeof obj === 'object') {
obj.n++;
}
Expand Down
2 changes: 1 addition & 1 deletion Solutions/4-count-types.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const countTypesInArray = arr => {
const countTypesInArray = (arr) => {
const counters = {};
for (const element of arr) {
const type = typeof element;
Expand Down

0 comments on commit 0d89947

Please sign in to comment.