node-p-is-promise

Check if something is a promise
  https://github.com/sindresorhus/p-is-promise#readme
  0
  no reviews



Just pass your value to Promise.resolve() and let it handle it.

Can be useful if you need to create a fast path for a synchronous operation.

Node.js is an event-based server-side JavaScript engine.