I am wondering if it is possible to iterate a multidimensional array in Node.js. I am returning an array that has an object inside it, and I put it in an array so that I can click on it, but when all this is done, I am left with something like
[ [ { stuff: stuff } ], [ { stuff: stuff } ] ]
I tried
each item in items p= item
which returns [object Object]
When i try
each item in items p= item.invdescription
I get an error message, any idea how I can do this with jade? Thanks!
Basically:
for (var i = 0; i < items.length; i += 1) { p= items[0][i].invdescription }
Datsik
source share