clone-lite

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i clone-lite

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • roi-revolution
  • tyler-murphy