My dilemma revolves around an object that is evidently a string, given that I can access the string using:
console.log(sender)
and see Fri Mar 02 2018 09:00:20 GMT+0000 (GMT Standard Time), confirming its status as a string.
However, when attempting this:
if (sender.indexOf("(GMT Standard Time)") !== -1)
I receive an error stating "sender.indexOf is not a function..."
The AngularJS version in use is 1.4.9
Interestingly, upon hovering over sender, it displays "(parameter) sender: any"
What exactly does 'any' refer to here?