Question: t.indexof is not a function?
Answer: Sometime on TypeScript, when you call the indexOf() method you can get the error 'indexOf is not a function'. This happens when the data contained in the variable is represented by a number without other characters, even when the variable has been declared as a string.