True, I always forget the browser. At that point I would probably use Bluebird's promisify, but only because I love Bluebird. This option is a nice save for the browser.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Or you could use util.promisify without having to install a single library.
Definitely one way you could go!
asyncAdapter
can work in Node.js or browser js files, whereas util.promisify is a node-only option.True, I always forget the browser. At that point I would probably use Bluebird's
promisify
, but only because I love Bluebird. This option is a nice save for the browser.