Array=[1,2,3,"abc","def","ghi",4,"jkl",5,6,"mno","pq","r","s","tu","v",2,4,55,"wx","yz"]
I want to split that array after everytime the element type changes from string to an integer.
This is the result I expect
[
[1,2,3,"abc","def","ghi"],
[4,"jkl"],
[5,6,"mno","pq","r","s","tu","v"],
[2,4,55,"wx","yz"]
]
I have tried a lot of ways but keep failing