4 ms·
As explained .text() returns a promise, and the fact that many people don't know that and that your 1-line solution does not work is a strong indication that my
by franciscop 8y ago
As explained .text() returns a promise, and the fact that many people don't know that and that your 1-line solution does not work is a strong indication that my solution is helpful!
With magic-promises you don't need to worry about whether something regurns a promise or not. See fs-array, some methods will return promises and some won't, but you can just treat them all the same.
- mnr 8y agoI thought I was so clever! But yes I see how it's very different. In general, magic (or using Proxy) scares me, but I'm warming up to the idea here.