Sha256: 7d51922df4a5c3ef11f8dce771a50820a238485c5fec16b6e03c1abe98a4f90d

Contents?: true

Size: 967 Bytes

Versions: 74

Compression:

Stored size: 967 Bytes

Contents

Node.JS module “Deep Extend”
============================

Recursive object extending.

Install
-----

    npm install deep-extend

Usage
-----

    var deepExtend = require('deep-extend');
    var obj1 = {
        a: 1,
        b: 2,
        d: {
            a: 1,
            b: [],
            c: { test1: 123, test2: 321 }
        },
        f: 5,
        g: 123
    };
    var obj2 = {
        b: 3,
        c: 5,
        d: {
            b: { first: 'one', second: 'two' },
            c: { test2: 222 }
        },
        e: { one: 1, two: 2 },
        f: [],
        g: (void 0)
    };

    deepExtend(obj1, obj2);

    console.log(obj1);
    /*
        { a: 1,
          b: 3,
          d:
           { a: 1,
             b: { first: 'one', second: 'two' },
             c: { test1: 123, test2: 222 } },
          f: [],
          c: 5,
          e: { one: 1, two: 2 },
          g: undefined }
    */

Version data entries

74 entries across 74 versions & 4 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.6 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/bower-json/node_modules/deep-extend/README.md