Textual representation of a switch-case function.
argument[0] is the default value.
argument[1] - argument[args.length] are objects with 'case' and 'value'.
The value of the first object where its 'case' Expression resolves to true
will be used.
If no 'case' expression resolves to true the default value will be returned.
Textual representation of a switch-case function. argument[0] is the default value. argument[1] - argument[args.length] are objects with 'case' and 'value'.
The value of the first object where its 'case' Expression resolves to true will be used. If no 'case' expression resolves to true the default value will be returned.