I have received an array structured like this
var cars = [['BMW'],[],['6000cc']];
This array includes two distinct values of the same item. The presence of an empty array indicates a change in data. The data on the left side of the empty array corresponds to one set of information, while the data on the right side corresponds to another set.
My task is to divide this array into two separate arrays.