We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d56ce commit 0d89947Copy full SHA for 0d89947
Solutions/2-by-value.js
@@ -1,5 +1,5 @@
1
'use strict';
2
3
-const inc = x => ++x;
+const inc = (x) => ++x;
4
5
module.exports = { inc };
Solutions/3-by-reference.js
@@ -1,6 +1,6 @@
-const inc = obj => {
+const inc = (obj) => {
if (typeof obj === 'object') {
obj.n++;
6
}
Solutions/4-count-types.js
-const countTypesInArray = arr => {
+const countTypesInArray = (arr) => {
const counters = {};
for (const element of arr) {
const type = typeof element;
0 commit comments