why are you not using something like this:
function (param1) {
params1 = !params1 && params1 !== 0 ? 1 : param1; (if param1 not set and is not 0 --> set it to default value else --> param1
....
}
why are you not using something like this:
function (param1) {
params1 = !params1 && params1 !== 0 ? 1 : param1; (if param1 not set and is not 0 --> set it to default value else --> param1
....
}