Skip to content

Commit 5854d87

Browse files
authoredOct 20, 2017
Merge pull request #96 from zacharyvoase/patch-1
Fix demonstrated usage of Object.assign in README
2 parents 5f11a9f + c12aa6f commit 5854d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ If you pass it on to another library, make sure to make a *deep copy* of it:
2323
```javascript
2424
const options = Object.assign(
2525
{},
26-
loaderUtils.getOptions(this), // it is safe to pass null to Object.assign()
27-
defaultOptions
26+
defaultOptions,
27+
loaderUtils.getOptions(this) // it is safe to pass null to Object.assign()
2828
);
2929
// don't forget nested objects or arrays
3030
options.obj = Object.assign({}, options.obj);

0 commit comments

Comments
 (0)
Please sign in to comment.