How can I loop accounts with the boilerplate template?

Hi, I’m rather new to NodeJS and Promises.

With the boilerplate template if I just call one getAccountInfo it works just about fine.

But I want to do this on an array of accounts.

How can I achieve this? Any help appreciated