List of methods:
options can be the following:
'circular'Boolean: set to true if the object to be cloned may contain circular references. (default:
'depth'Integer: clone depth limit. (default:
'prototype'String : sets the prototype to be used when cloning an object. (default: parent prototype).
Sorry don't remember from where I copy pasted this code from. Don't hesitate to let me know.