I am having a problem where the forEach method is working for spread operators but it is not working for arrays. I get the "Cannot read property \'forEach\' of undefined&qu