Copies properties from the source
object to the target
object and returns the target.
var obj = Pablo.extend({foo:1}, {bar:2});
alert(JSON.stringify(obj)); // {"foo":1,"bar":2}
Copies properties from the source
object to the target
object and returns the target.
var obj = Pablo.extend({foo:1}, {bar:2});
alert(JSON.stringify(obj)); // {"foo":1,"bar":2}
If more than one source object is passed, then each one will be copied across from right-to-left. Only the target object is modified.
If withPrototype
is true
then properties from the sources’ prototype chains will also be copied. If the target is not an object, a new blank object will be created first.
Painting is just another way of keeping a diary.Pablo Picasso