Skip to main content

I have a simple nested array generated by a code action step (JS).

const array = [['dog', 'cat'],['zebra', 'giraffe']];

Now, I use a ‘Loop by Zapier’ step to loop through the top level arrays - but every iteration returns a string of the whole array:

dog,cat,zebra,giraffe

 

How do I get the actual subarrays in the loop?

 

Basically I want to be able to use the following:

First iteration:

n‘dog’, ‘cat’]

Second iteration:

i‘zebra’, ‘giraffe’]

 

Is this possible?