Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md

Issue 877193002: Upgrade vulcanize to 0.7.6. (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md
index a8b470be3478d110488748f005a9403612e47c0b..aee51c12b56589467a7e6d3d365b6d2566a87eca 100644
--- a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/node_modules/object-assign/readme.md
@@ -11,24 +11,26 @@
$ npm install --save object-assign
```
-```sh
-$ bower install --save object-assign
-```
-
-```sh
-$ component install sindresorhus/object-assign
-```
-
## Usage
```js
+var objectAssign = require('object-assign');
+
objectAssign({foo: 0}, {bar: 1});
//=> {foo: 0, bar: 1}
// multiple sources
-objectAssign({foo: 0}, {bar: 1}, {baz: 3});
+objectAssign({foo: 0}, {bar: 1}, {baz: 2});
//=> {foo: 0, bar: 1, baz: 2}
+
+// overwrites equal keys
+objectAssign({foo: 0}, {foo: 1}, {foo: 2});
+//=> {foo: 2}
+
+// ignores null and undefined sources
+objectAssign({foo: 0}, null, {bar: 1}, undefined);
+//=> {foo: 0, bar: 1}
```
@@ -46,4 +48,4 @@ Assigns enumerable own properties of `source` objects to the `target` object and
## License
-[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
+MIT © [Sindre Sorhus](http://sindresorhus.com)

Powered by Google App Engine
This is Rietveld 408576698