Skip to content

anzerr/clone.util

Repository files navigation

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}}
}));