A function which determines whether the object is a Promise
.
p
(Any): The object to determine whether it is a promise.
(Boolean): true
if the object is a Promise
else false
var isPromise = Rx.helpers.isPromise;
var p = RSVP.Promise(res => res(42));
console.log(isPromise(p));
// => true