jPaq Docs - jPaq.extend()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  787

Summary

Adds properties that exist in one object to another object.

Parameters

  1. objToExtend => Object
    The object which will receive the extra properties.
  2. objExtras => Object
    The object which contains the properties that may be attached to "objToExtend".
  3. [fnFilter] => Function
    Optional. The function that will be used to filter out unwanted properties. The first parameter passed to this will be the property that may be attached to "objToExtend". The second parameter will be the name of the property. The third parameter will be the current value for the specified property of "objToExtend". The fourth parameter will be a reference to "objToExtend".