This clones deep, circular javascript objects. The following are supported and tested:
- Numbers
- Strings
- Booleans
- Dates
- Regular Expressions
- Objects
- Arrays
- null
- undefined
It works in all modern browsers, and IE 9 and higher.
npm install --save clone-lite
This should work in all javascript environments. It's well-suited for browsers since the code is small.
var clone = require('clone-lite')
No browser version of the code is included, so use your favorite bundler.