Skip to content

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>) => Subscription

Parameters

ParameterTypeDescription
cb(value: T) =&gt; voidSide effect per value.

Returns

Function taking Store&lt;T&gt; and returning Subscription.

See Also

Released under the MIT License.