clone-it
Deep clone JavaScript Arrays, Objects, Functions, Instances, Dates, Regular Expressions and Primitives. Takes care of circular dependency.
Usage
Install it from npm: $ npm install clone-it
and then use var cloneit = require('clone-it')
.
var cloned = ;