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