Socket
Socket
Sign inDemoInstall

@ndhoule/clone

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ndhoule/clone

Deeply clone an input object.


Version published
Weekly downloads
60K
decreased by-28.92%
Maintainers
1
Install size
129 kB
Created
Weekly downloads
 

Changelog

Source

1.0.0

Initial release

Readme

Source

clone CI

Deeply clones a source object.

Installation

$ npm install @ndhoule/clone

API

clone(target : *) => *

Deeply copies an input object.

var a = { a: 1 };
var cloned = clone(a);

console.log(cloned); //=> { a: 1 }
console.log(cloned === a); //=> false

Acknowledgements

Based on component/clone.

License

Released under the MIT license.

Keywords

FAQs

Last updated on 09 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc