Is there a way to detect if an object is an instance of a stream -class? For example RxJS or Bacon.js stream.
What I'm looking for is something like
function isStream(obj) {
// if obj is RxJS or Bacon Stream return true, otherwise false
}
What is the most reliable way of doing this?