1.0.2 • Published 7 years ago

clone-lite v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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.