Determines whether the Notification has a value. Returns true
for OnNext Notifications, and false
for OnError and OnCompleted Notifications.
var onNext = Rx.Notification.createOnNext(42);
console.log(onNext.hasValue);
// => true
var onCompleted = Rx.Notification.createOnCompleted();
console.log(onCompleted.hasValue);
// => false