Traversing elements inside an array which is inside another array in p5js

Is there a way in p5js to traverse elements inside an array that is inside another array?


This is the CSV file I am using, and I want to access the elements inside the ingredients column one by one. Since each row has a list of its own how do I access the elements one by one in that list?

From the PoV of a CSV file each column’s element is a single string object.
However you can turn a string into a string array by using split() or splitTokens():
const ingredients = splitTokens(ingredientsColumn, ', ');