# hasValue

Determines whether the Notification has a value. Returns `true` for OnNext Notifications, and `false` for OnError and OnCompleted Notifications.

### Returns

_(Bool)_: Returns `true` for OnNext Notifications, and `false` for OnError and OnCompleted Notifications.

### [Example](http://jsbin.com/cicixi/3/edit?js,console)

```javascript
var onNext = Rx.Notification.createOnNext(42);
console.log(onNext.hasValue);

// => true

var onCompleted = Rx.Notification.createOnCompleted();
console.log(onCompleted.hasValue);

// => false
```

### Example
