DEV Community

Discussion on: Getting a recursive data structure asynchronously with RxJS

Collapse
 
trentmilton profile image
Trent Milton

Great article! I wanted to check if the trailing comma in the destructuring assignment is necessary in rxjs?

Collapse
 
krumpet profile image
Ran Lottem

I don't know if it has anything to do with rxjs specifically, but I just checked and it indeed works without the trailing comma - I thought it would be required to specify only naming the first item in the array, but that is not so. It can be used to specify other positions, see here:

basarat.gitbooks.io/typescript/doc...