From 64ed34f94962679bb305bf67a6b9897c62d1ea87 Mon Sep 17 00:00:00 2001
From: Jo Liss _.extend(destination, *sources)
Copy all of the properties in the source objects over to the
- destination object. It's in-order, so the last source will override
- properties of the same name in previous arguments.
+ destination object, and return the destination object.
+ It's in-order, so the last source will override properties of the same
+ name in previous arguments.
_.extend({name : 'moe'}, {age : 50});
@@ -1017,8 +1018,8 @@ _.extend({name : 'moe'}, {age : 50});
defaults_.defaults(object, *defaults)
Fill in missing properties in object with default values from the
- defaults objects. As soon as the property is filled, further defaults
- will have no effect.
+ defaults objects, and return the object. As soon as the
+ property is filled, further defaults will have no effect.
var iceCream = {flavor : "chocolate"};