I have a function returning the promise of an array:
movementListOfTheUserForTheStockCode(userID: string): Promise<calculatedMovement[]>
How to get the length of the array?
How to assign a promising function into a constant?
const movementList = movementListOfTheUserForTheStockCode(userID);
for (let i = 0; i < rawMovementList.length; i++) {
// do stuff
}