Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Using default parameter problem

$
0
0

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 228595

Trending Articles



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