mnr
Joined 9 years ago
Karma
14
Submissions
18
Member since
Nov 18
Joined 9 years ago
Example:
const lines = (await fetch(myUrl)).text().split('\n');
[1] http://vanilla-js.com/Edit: magic-promises promotes all accessed properties to magic-promises as well, and performs magic on functions, so it's not exactly the same, but I'm not sure if I'd want to add the proxy overhead to my code just to make my code more "fluent".