I'm writing a function in which one of the arguments is an array that can have strings or numbers:
function functionName(argumentOne: string, argumentTwo: string, argumentThree: string[] | number[]) {
...
}
One instance of argumentThree: ["string1", 2, "string3"]
string[] is an array of strings and number[] is an array of numbers. Therefore my code is giving me an error.