DEV Community

Discussion on: Returning A Promise From A Function Is Extra Useful With TypeScript

Collapse
 
georgewl profile image
George WL

Nah, I think it's just preference really, neither is better

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt

If you have worked with DefinitelyTyped, which offers linting, you will find that bracketed favors Array, while otherwise favors [].