Merges the names using -> or OR depending on the mode.
Wraps the names in parentheses if they contain an operator.
mergeNames(["a", "b"], "-\>") === "a -\> b" Copy
mergeNames(["a", "b"], "-\>") === "a -\> b"
mergeNames(["a", "b -\> c"], "||") === "a || (b -\> c)" Copy
mergeNames(["a", "b -\> c"], "||") === "a || (b -\> c)"
A tuple of names to merge
The operator used for merging
The merged names
Generated using TypeDoc
Merges the names using -> or OR depending on the mode.
Wraps the names in parentheses if they contain an operator.
Example
Example