Skip to content

Commit ad3dda1

Browse files
committed
Use short syntax
1 parent 28fa484 commit ad3dda1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JavaScript/8-adder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const adder = (a) => {
44
const value = () => a;
5-
const add = (b) => adder(a + b);
5+
const add = b => adder(a + b);
66
return { add, value };
77
};
88

0 commit comments

Comments
 (0)