Skip to content

Instantly share code, notes, and snippets.



Created Nov 16, 2012
What would you like to do?
Object References in JS
(function(exports) {
var object1 = { name : 'daniel' };
// make a reference to the local variable
exports.globalObject = { reference : object1 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.