4 ms·
You use JS Promises? That’s a monad
by jdmg94 5y ago
You use JS Promises? That’s a monad
- rolandpeelen 5y agoI’m afraid they aren’t as both ‘map’ and ‘flatmap’ are defined as a single function; ‘then’ (so it won’t hold true to the monad laws).
4 ms·