Nondeterministic Postrequisite Metaprotocol

    @ndhoule/clone

    1.0.0 • Public • Published

    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.

    Install

    npm i @ndhoule/clone

    DownloadsWeekly Downloads

    30,179

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • ndhoule