Test whether an object/function is a promises/A+ object/function or constructor. More powerful then is-promise
.
npm i ispromise -S
var isPromise = require('ispromise');
isPromise(Promise) // false
isPromise(Promise.resolve()) // true
isPromise.isConstructor(Promise) // true
MIT@Jingchen Zhao