I have a function which returns Promise<Promise<void>[]>. In the functions then handler I got the right Promise which I want to be returned.
promises = this.copyFunc(moment(time).format(), target_date).then((promise) => {
console.log(promise); // <<-- This shows fulfilled value and is what I want
return promise;
});
But the returned promises is a Promise pending. Why is promises still pending and how to get the fulfilled value?
This should be obvious and I've tried everything but haven't found a solution yet.