Skip to content

Instantly share code, notes, and snippets.

@pimatco
Created December 7, 2017 16:31
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 pimatco/b20ab510152afd5ec2dc9c8451063091 to your computer and use it in GitHub Desktop.
Save pimatco/b20ab510152afd5ec2dc9c8451063091 to your computer and use it in GitHub Desktop.
Check if a value exists, otherwise pass Undefined
function isAvailable(param){
if(!param){
return param='Undefined'
}else{
return param=param;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment