native-deep-extend

c++ implementation of deep-extend module

npm install native-deep-extend
1 downloads in the last day
10 downloads in the last week
24 downloads in the last month

Native implementation of deep-extend module

Install

    npm install native-deep-extend

Using

    var Extend = require('native-deep-extend'),
           obj = {deep: {hello: ["me", "world"]}},
          func = function Test() {console.log("test function")},
        extObj = Extend.extend({my: ["variable"]}, obj),
      cloneObj = Extend.clone(obj),
     cloneFunc = Extend.clone(func);

    console.log(obj !== extObj);
    console.log(obj.my !== extObj.my && obj.my === undefined );
    console.log(obj !== cloneObj);
    console.log(obj.deep !== extObj.deep && obj.deep === cloneObj.deep);
    console.log(func !== cloneFunc);
npm loves you