
extendDeep()Method
Description
Does the same what nokia.mh5.extend does but can deal with nested objects
Parameters
| Type | Name | Description |
|---|---|---|
| Object | target | The object to be extended |
| Object | source | The object or objects with which to extend target |
Return Value
Type: Object
The extended object (the target object reflecting the result of the operation)
Example
var obj1 = { a:1, b:2, c:3, d: {d1: 1, d2: 2} };
var obj2 = { d: { d2: 3, d3: 3}, e:5 };
var obj3 = nokia.mh5.extend(obj1, obj2);
//obj3 = { a:1, b:2, c:3, d: {d1: 1, d2: 3, d3: 3}, e:5 }