Skip to content

Commit 172ad52

Browse files
committed
Fix code style
1 parent e44a70b commit 172ad52

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

JavaScript/3-TypedArrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const types = [
88
Float64Array
99
];
1010

11-
const size = types.map(typedArray => typedArray.BYTES_PER_ELEMENT);
11+
const size = types.map((typedArray) => typedArray.BYTES_PER_ELEMENT);
1212

1313
console.dir({
1414
types,

JavaScript/5-methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for (let i = 0; i < 10; i++) {
66
arr8[i] = i;
77
}
88

9-
const mapped = arr8.map(el => el * 2);
9+
const mapped = arr8.map((el) => el * 2);
1010
console.dir(mapped);
1111

1212
console.dir([

JavaScript/7-subarray.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ for (let i = 0; i < 10; i++) {
77
}
88

99
console.log(arr8);
10-
1110
console.log(arr8.subarray(1));
12-
1311
console.log(arr8.subarray(3, 7));
14-
1512
console.log(arr8.slice(1));
16-
1713
console.log(arr8.slice(3, 7));

0 commit comments

Comments
 (0)