isSource
Signature - source.ts#L562
function isSource(value: unknown): value is Source<unknown>
Determines whether the given value is a Source.
Parameters
Parameter | Type | Description |
---|---|---|
value |
| The value to check. |
Returns
Type | Description |
---|---|
| Whether the value is a Source. |
Example Usage
isSource(Sink(() => {})); // false.
isSource(Source(() => {})); // true.
isSource(Subject()); // true.
isSource(Disposable()); // false.
isSource({}); // false.
isSource(() => {}); // false.
isSource(null); // false.