This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
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.