Currently, I am in the process of creating an app with Ionic, utilizing TypeScript as the primary language.
When declaring an array in my code:
products = new Array();
I expect it to be recognized as an array. However, when I check the type using console.log(typeof this.products), it returns "object".
Is there any way I can ensure that it is recognized as an array instead? Any suggestions or solutions?