Skip to content

Commit ad8a160

Browse files
authored
Merge pull request #7 from kitgary/fix-ch05-code
Update Wrapper.js
2 parents 2a828a4 + cbd52c7 commit ad8a160

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/model/Wrapper.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exports.Wrapper = class Wrapper {
1+
class Wrapper {
22
constructor(value) {
33
this._value = value;
44
}
@@ -18,8 +18,9 @@ exports.Wrapper = class Wrapper {
1818
};
1919

2020
// wrap :: A -> Wrapper(A)
21-
const wrap = (val) => new exports.Wrapper(val);
21+
const wrap = (val) => new Wrapper(val);
2222

2323
module.exports = {
24-
wrap: wrap
25-
};
24+
wrap: wrap,
25+
Wrapper: Wrapper
26+
};

0 commit comments

Comments
 (0)