How to check if object is Promise?


Whether it's an ES6 Promise or a bluebird Promise, Q Promise, how do I test to see if a given object is a Promise?