Object.extend(destination, source) → Object
-
destination
(Object
)
– The object to receive the new properties.
-
source
(Object
)
– The object whose properties will be duplicated.
Copies all properties from the source to the destination object. Returns
the destination object.