Object.extend

Copies all properties from the source to the destination object.

Implemented in:$paramimplemented
Client: Supported
Server: Supported
JavaScript: 1.8
ECMAScript: 5 Edition

Syntax

Object.extend( dest, src )

Parameters

Parameter Description
dest Object to be extended
src Object to copy properties from

Description

Object.extend does not clone destination object. It modifies it in-place.

Returns

Returns destination object.

Example

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.