I have an array of values and I want to call a promise function on every value of the array. But this has to happen sequentially. I also want to wait calling the next promise before the previous promise is resolved.
let array = [ 1, 2, 3 ];
for (var i = 0; i < array.length; i++) {
MyPromiseFunction(array[i]).then(
// goToNextPromise
);
}