Quantcast
Viewing all articles
Browse latest Browse all 229897

Using default parameter problem

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
    ....
}

Viewing all articles
Browse latest Browse all 229897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>