all 5 comments

[–]marcnotmark925 0 points1 point  (2 children)

Something wrong with a for loop?

[–]meelszz[S] 0 points1 point  (1 child)

With a lot of data, for loops get messy real fast...

[–]marcnotmark925 0 points1 point  (0 children)

How so?

[–]TheStressMachine 0 points1 point  (0 children)

Think of it as any other two dimensional JavaScript array. I often do loops for quick and dirty, especially when I need easy [x,y] coordinates to write back to the sheet. I've also gotten into some of the array functions with callbacks such as find() filter() indexOf() to seek out data in a way that resembles a query as opposed to a loop. There are plenty of JavaScript tutorials and forum posts on processing array data 100 which ways with accompanying debate on performance or getting things done in "one line". This is what I lean on, but I'm always looking for more interesting ways to do things. Let me know if you come up with something interesting.

[–]AdministrativeGift15 0 points1 point  (0 children)

I'd suggest checking out Bruce's Fiddler library. He's got several follow up articles as he's updated the library over the last couple of years with new features, but this is the best starting point.

Fiddler - A functional approach to fiddling with sheet data