dist/modules/object.js
function clone(obj, json) {
    if (json)
        return JSON.parse(JSON.stringify(obj));
    return _clone(obj);
}
function clone(obj, json) {
    if (json)
        return JSON.parse(JSON.stringify(obj));
    return _clone(obj);
}
function clone ( obj , json ) { if ( json ) return JSON . parse ( JSON . stringify ( obj ) ) ; return _clone ( obj ) ; }
Clone
Performs deep cloning of objects.

@param obj object to be cloned.
@param json performs quick shallow clone using JSON.
Clone Performs deep cloning of objects .