DEV Community

CodeTip - Javascript: Pseudomandatory parameters in es6 functions

Avraam Mavridis on October 25, 2018

In many programming languages, the parameters of a function are by default mandatory and the developer has to explicitly define that a parameter is...
Collapse
 
affanshahid94 profile image
Affan Shahid

This is great if you wanna stay in JS otherwise use flow/ts so that this will be checked statically at build time and wont make it into your final bundle