I came across the below Typescript code and want to know why it assigns myArray with (await asyncRPCCall())[0] as opposed to just doing assignment with await asyncRPCCall(). Why put the results in () and return the first element? What's the difference?
export class myClass {
static async myFunction(): Promise<void> {
const myArray: Array<Array<string>> = (await asyncRPCCall())[0]
console.log(myArray) // returns [['a','b','c','d'],['e','f','g','h']]
}
}