Skip to content

Instantly share code, notes, and snippets.

@gbellmann
Created September 11, 2016 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbellmann/744136f5db07d3eafc58cc0404602b24 to your computer and use it in GitHub Desktop.
Save gbellmann/744136f5db07d3eafc58cc0404602b24 to your computer and use it in GitHub Desktop.
Azure Function written with Node.js using optional arguments
// 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