I'm attempting to convert a string array into a number array and after conducting some research online, I came across this solution:
let numbersAsStringArray = originalQueryParams[property] ?? []
let numbers = numbersAsStringArray.map((i) => Number(i));
However, I keep encountering the following error message referencing 'i':
Property 'map' does not exist on type 'string | string[]'.
The numbersAsStringArray is just a simple array containing numbers as strings.