npm.io
1.0.2 • Published 9 years ago

clone-lite

Licence
ISC
Version
1.0.2
Deps
0
Vulns
0
Weekly
0

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.

Install

npm install --save clone-lite

Use

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.

Keywords