check whether a param is set node js code example
Example 1: undefined javascript check
if(undefinedElement === null) {
console.log("Element is undefined");
}
Example 2: How can I check whether a variable is defined in Node Js
if (query){
doStuff();
}