Created
September 11, 2016 18:38
-
-
Save gbellmann/744136f5db07d3eafc58cc0404602b24 to your computer and use it in GitHub Desktop.
Azure Function written with Node.js using optional arguments
This file contains hidden or 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
// Se debe incluir el context, pero los otros argumentos son opcionales | |
module.exports = function(context) { | |
// Las variables de entrada adicionales pueden accederse en la propiedad arguments | |
if(arguments.length === 2) { | |
context.log('La función recibió 2 argumentos de entrada'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment