No description or website provided.
C++ JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src update extend function Nov 8, 2013
.gitignore prepare npm module May 7, 2013
.npmignore
Makefile
README.md
binding.gyp
index.js
ny-nodes.json
package.json
test.js
wscript

README.md

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