Hacker News new | past | comments | ask | show | jobs | submit login

How do you return a result (this function isn't doing so)? I'm guessing getJSON could be returning a Promise but there must be a way to do the same in an async function.

EDIT, here's the spec, looks like you can just return: https://github.com/lukehoban/ecmascript-asyncawait




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: