how to check if a paramater exists in an object javascript code example
Example: how to check wether the property exist in a object in java script
if (obj.hasOwnProperty('prop')) {
// do something
}
if (obj.hasOwnProperty('prop')) {
// do something
}