Skip to content

startWith()

Uses initial whenever upstream is undefined; once upstream is defined, passes it through (Tier 1).

Signature

ts
function startWith<A>(initial: A, opts?: StoreOptions): StoreOperator<A | undefined, A>

Parameters

ParameterTypeDescription
initialAFallback value for undefined upstream.
optsStoreOptionsOptional StoreOptions.

Returns

StoreOperator&lt;A | undefined, A&gt;

Released under the MIT License.