extend,_.extend

Function Description
Takes two parameters. Element(jvascript or json object) is extended with a given extention and returned to the caller.
Function prototype
_.extend(element,ex). Extends the @element with @ex and returns the extended @element.
Function parameters
@element - json, javascript object
@ex - json, javascript object extension
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Apple DIV
  • apple 1
  • apple 2
Code area to try out extend,_.extend function.