forEach()
Curried sink: forEach(cb)(store) runs cb on each DATA after subscribe; returns Subscription.
Signature
ts
function forEach<T>(cb: (value: T) => void): (store: Store<T>) => SubscriptionParameters
| Parameter | Type | Description |
|---|---|---|
cb | (value: T) => void | Side effect per value. |
Returns
Function taking Store<T> and returning Subscription.