Skip to content

Commit 43c9f7d

Browse files
Merge pull request ryanmcdermott#207 from kantuni/patch-1
Mistake in the Set default objects with Object.assign
2 parents 2ff9c4f + a995cc4 commit 43c9f7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# clean-code-javascript
32

43
## Table of Contents
@@ -474,7 +473,7 @@ function createMenu(config) {
474473
config.title = config.title || 'Foo';
475474
config.body = config.body || 'Bar';
476475
config.buttonText = config.buttonText || 'Baz';
477-
config.cancellable = config.cancellable === undefined ? config.cancellable : true;
476+
config.cancellable = config.cancellable !== undefined ? config.cancellable : true;
478477
}
479478

480479
createMenu(menuConfig);

0 commit comments

Comments
 (0)