Created
June 3, 2013 08:41
-
-
Save ralt/5696907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// module.js | |
module.exports = function() { | |
var not = 'shared', | |
between = 'objects'; | |
return { | |
an: ['array'], | |
some: method() {} | |
}; | |
}; | |
// app.js | |
var mod = require('./module'); | |
var obj1 = mod(), | |
obj2 = mod(); | |
obj1.an === obj2.an; // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment