write a function to that takes two arguments. If the 2 args are integers, return the sum, else return the concatenation of the 2 args (assume if a and b is not number its a string)
By admin
In TypeScript, you can create a function that checks the types of the two arguments and either adds them if they are both numbers or concatenates them if at least one of them is not a number. Here's how you can implement such a function:
Posted 8 months ago