I have a spreadsheet that has item/stock sent to me in the form of a single line such as:
item1,Add to Cart,item2,Out of Stock,...
I need to create an array of objects so that it looks like:
[["item1","Add to Cart"],["item2","Out of Stock"]]
From there, I intend to search the array for objects that match "Out of Stock"
I understand I can split on the comma, but how do I split and loop so that index 0,1 are created as an object and first item in a new array, so on and so forth?