Skip to content

Instantly share code, notes, and snippets.

@gs-ysingh
Created June 29, 2015 18:26
Show Gist options
  • Save gs-ysingh/020c068ddb482fa2306f to your computer and use it in GitHub Desktop.
Save gs-ysingh/020c068ddb482fa2306f to your computer and use it in GitHub Desktop.
module.exports = function (info) {
//private variable
var values = {};
for(var prop in info) {
if(values[prop] !== 'undefined') {
values[prop] = info[prop];
}
}
//return public function
return {
getInfo: function () {
return values;
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment