This is a baby step.
I was trying to write a dummy function to mock the behaviour of an API get request, so it needs to be a promise that resolves to an array.
This is the code:
1 | const pretendStr = 'i-am-a-sharable-link-for-trip'; |
This Promise will resolve to ${pretendStr}${tripID}
after 400ms.
Will work further on dealing with Promise objects later.