How to define optional parameters to a function?

How to define optional parameters to a function?


functio myFunction(row = 1, data = []){ // ... function body }

Comments

Popular posts from this blog

How to Remove Duplicates from Array in Javascript ES6

Es6 how to check if value is not null or undefined?