Skip to content

Commit 8c4f339

Browse files
committed
Code style fixes
1 parent 0e19b1a commit 8c4f339

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JavaScript/1-superposition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
const pow = Math.pow;
44
const sqrt = Math.sqrt;
5-
const inc = x => x + 1;
5+
const inc = x => ++x;
66
const add = (a, b) => a + b;
77
const mul = (a, b) => a * b;
88
const div = (a, b) => a / b;
99
const log = (base, n) => Math.log(n) / Math.log(base);
10-
const iff = (e, x1, x2) => e ? x1 : x2;
10+
const iff = (e, x1, x2) => (e ? x1 : x2);
1111
const loop = (from, to, fn) => {
1212
for (let i = from; i <= to; i++) fn(i);
1313
};

0 commit comments

Comments
 (0)