@anzerr/clone.util

Deep Copy objects

Usage no npm install needed!

<script type="module">
  import anzerrCloneUtil from 'https://cdn.skypack.dev/@anzerr/clone.util';
</script>

README

Intro

GitHub Actions status | publish

Deep Copy of an object with circular breaks

Install

npm install --save git+https://github.com/anzerr/clone.util.git
npm install --save @anzerr/clone.util

Example

const copy = require('clone.util');

console.log(copy({
    cat: 'cat',
    got: ['egg', 'test', {hate: 'egg'}],
    that: {egg: {a: 1}}
}));