Javascript Library.
Commands 0 |
---|
Create a new object and assign all given objects to it.
_z.extendObjects(...Objects);
Returns: All given …Objects Object
<script>
// Object 1
var obj1 = { "name": "hlaCk" };
// Object 2
var obj2 = { "status": true, "len": 1 };
// Object 3
var obj3 = { "data": { "var": "val" } };
// Merge Object 1, Object 2 and Object 3
_z.extendObjects(obj1, obj2, obj3); // { "name": "hlaCk", "status": true, "len": 1, "data": { "var":"val" } }
</script>