Created
June 29, 2015 18:26
-
-
Save gs-ysingh/020c068ddb482fa2306f 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.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