Bunoon: TESS | Manual | Any

This area contains a set of functions that can be used on any type of object (if when developing, your code becomes unaware of the type of object you are handling at the time). If you know what type of object you are looking at (Date, Object, Array, etc), please see the additional sections in the left navigation panel.

Takes an object and clones it as a return value.

The main arguments for this function are as follows:

  • oObject [Object] - The object that should be cloned.

The return value for this function is as follows:

  • [Object] - A cloned object (or the object passed itself if not valid).

Below is an example of how to use this function:

var oObject = {first: 'John', last: 'Doe'};

var oNewObject = $T.Any.Clone(oObject);