Created
September 30, 2014 11:40
-
-
Save ethyde/0ed5e4a068d6572a287f to your computer and use it in GitHub Desktop.
Return multiple value http://stackoverflow.com/a/2917186
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
// set | |
var newCodes = function(){ | |
var dCodes = fg.codecsCodes.rs; // Linked ICDs | |
var dCodes2 = fg.codecsCodes2.rs; //Linked CPTs | |
return [dCodes, dCodes2]; | |
}; | |
// get | |
var codes = newCodes(); | |
var dCodes = codes[0]; | |
var dCodes2 = codes[1]; | |
// width label | |
// set | |
var newCodes = function(){ | |
var dCodes = fg.codecsCodes.rs; // Linked ICDs | |
var dCodes2 = fg.codecsCodes2.rs; //Linked CPTs | |
return { | |
dCodes: dCodes, | |
dCodes2: dCodes2 | |
}; | |
}; | |
// get | |
var codes = newCodes(); | |
var dCodes = codes.dCodes; | |
var dCodes2 = codes.dCodes2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment