Combinations
Sometimes we allow function to accept different sequences of types. Let’s take an example:
Where the following sequences of types valid:
string, object, function
string, null, function
object, object, function
object, null, function
Function validateCombo
throws exception when none of the cases is valid
Last updated