Skip to content

Commit 9b9a627

Browse files
committed
Fix code style
1 parent 8825e27 commit 9b9a627

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

JavaScript/1-imperative.js

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

33
const { PI, sqrt } = Math;
4-
const square = x => x * x;
4+
const square = (x) => x * x;
55

66
// Truncated cone calculations
77

JavaScript/2-set-get.js

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

33
const { PI, sqrt } = Math;
4-
const square = x => x * x;
4+
const square = (x) => x * x;
55

66
// Reactive Truncated cone
77

JavaScript/4-observer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const variables = {
1212
count: 0,
1313
};
1414

15-
ee.on('city', city => {
15+
ee.on('city', (city) => {
1616
variables.count++;
1717
variables.maxDensity = max(variables.maxDensity, city.density);
1818
cities.push(city);
19-
cities.forEach(city => {
19+
cities.forEach((city) => {
2020
city.relative = Math.round(city.density * 100 / variables.maxDensity);
2121
});
2222
console.table(variables);

0 commit comments

Comments
 (0)