cyclic-deep-extend

a strict deep-extend that can handle cyclic structures

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cyclic-deep-extend
211.0.27 years ago7 years agoMinified + gzip package size for cyclic-deep-extend in KB

Readme

cyclic-deep-extend
a strict deep-extend that can handle cyclic structures

Usage

var deepExtend = require('cyclic-deep-extend');

var a = {},
    b = {};

b.b = b;

deepExtend(a, b);

a.b === b;
a.b.b.b.b.b.b === b; // etc...