Introduction to promises
A promise is commonly defined as a proxy for a value that will eventually become available.
Promises are one w...
For further actions, you may consider blocking this person and/or reporting abuse
Such a great article. Well written, focused and featuring really solid technique.
Were/Are you an educator? Your examples game is amazing!
The way you chained methods in the
fetch
example is such a powerful technique.I've been working on exploring the 'limits' of a similar pattern I call a 'functional river', check it out here: github.com/justsml/escape-from-cal...
:+1: using promises to compose (synchronous and) asynchronous methods in composable chains.
I usually don't see the part
response.status >= 200 && response.status < 300
and if it is done, won't you need to check for304
as well?Usually I see the usage: