JSPM

@ndhoule/clone

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32149
  • Score
    100M100P100Q149870F
  • License MIT

Deeply clone an input object.

Package Exports

  • @ndhoule/clone

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ndhoule/clone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.